Complete the code to import the fmt package for printing.
import [1]
The fmt package is used for formatted I/O, like printing text to the console.
Complete the code to declare the package name for this file.
package [1]The main package is used to create an executable program in Go.
Fix the error in the import statement to correctly import the math package.
import [1]
In Go, package names must be enclosed in double quotes when imported.
Fill both blanks to create a function that uses the fmt package to print a message.
func main() {
[1].[2]("Hello, Go packages!")
}Print instead of Println which does not add a newline.main as a package name here.The fmt package provides the Println function to print text with a newline.
Fill both blanks to create a package named utils with a function that returns the sum of two integers.
package [1] func Add(a int, b int) int { return a [2] b }
main as the package name here.b in the return statement.The package is named utils. The function adds two integers using the + operator. No extra character is needed after b.