Above code a simple program to print the "hello world". If you see the code structure we have declared a main package after that we have import statement followed by main function. fmt is a built-in package in go programming which allows us to formate the data and print the output to stdout. Println is one of the functions in the package fmt.