Complete the code to declare the package name.
package [1]The first line in a Go program declares the package name. For an executable program, it should be main.
Complete the code to import the standard library package for formatted I/O.
import "[1]"
The fmt package is used for formatted input and output in Go.
Fix the error in the function declaration to define the main function.
func [1]() { fmt.Println("Hello, Go!") }
The entry point of a Go program is a function named main with lowercase 'm'. It must be spelled exactly as 'main'.
Fill both blanks to complete the Go program that prints a message.
package [1] import "[2]" func main() { fmt.Println("Welcome to Go!") }
The package must be 'main' for an executable program, and the import must be 'fmt' to use Println.
Fill all three blanks to create a complete Go program that prints a greeting.
package [1] import "[2]" func [3]() { fmt.Println("Hello, world!") }
The package name is 'main', the import is 'fmt', and the function name is 'main' to run the program.