October 2015
Beginner to intermediate
400 pages
14h 44m
English
We’ll start with the now-traditional “hello, world” example, which appears at the beginning of The C Programming Language, published in 1978. C is one of the most direct influences on Go, and “hello, world” illustrates a number of central ideas.
package main
import "fmt"
func main() {
fmt.Println("Hello,
")
}
Go is a compiled language. The
Go toolchain converts a source program
and the things it depends on into instructions in the native machine
language of a computer. These tools are accessed through a single
command called go
that has a number of subcommands. The simplest ...