A standard library is the collection of libraries distributed with a programming language implementation. In Go, imports that do not look like repository URLs refer to standard-library packages supplied with the compiler. These packages extend what a single Go file can do, including formatting and output through fmt. section 2.1.1
Printing from a minimal Go program
A main.go file imports fmt and calls fmt.Println("Hello world"). Running go run main.go writes Hello world to standard output; Println can also display integer and Boolean values in human-readable form. section 2.1.1
Listing 2.1 main.go
package main
import "fmt"
func main() {
fmt.Println("Hello world")
}
Inspect the complete main.go listing showing the package declaration, standard-library import, main function, and output call. section 2.1.1






