Go · lesson 1 of 30 · First steps · bonusBuild a program
A program has package main and func main. With CGO_ENABLED=0, which bvs use sets, go build makes one static file that runs on the NAS without Go.
01-hello.go Download 01-hello.go
package main
import "fmt"
func main() {
fmt.Println("Hello from the NAS")
}
Terminal
$ ./01-hello
Hello from the NASExercise
Print a second line.
TurboShell does not contain Go. These programs are made in Bucket & Code with its Go runtime; the finished file runs on the NAS without Go.