21.6 Go Development Environment
Installing Go
# pkg install go# cd /usr/ports/lang/go/
# make install clean$ go version
go version go1.25.10 freebsd/amd64A Blessing for a Beautiful World
package main // Declare the main package; the program entry package must be main
import "fmt" // Import the fmt package for formatted output
func main() { // Main function, program entry
fmt.Println("Hello, World!") // Print "Hello, World!" to the console
}JetBrains GoLand IDE

References
Last updated