Security with Go
上QQ阅读APP看书,第一时间看更新

Writing your first program

The simplest package you can have is a single file inside a directory. Create a new file, ~/src/hello/hello.go, and put the following code inside:

package main

import "fmt"

func main() {
fmt.Println("Hello, world.")
}