Go
Go is a statically typed, compiled high-level programming language designed at Google by Robert Griesemer, Rob Pike, and Ken Thompson. It is syntactically similar to C, but also has memory safety, garbage collection, structural typing, and CSP-style concurrency. It is often referred to as Golang because of its former domain name, golang.org, but its proper name is Go.
See Go.
Getting started
Brap is pre-configured for Go.
Here is a Hello, World program in Go file hello-world.go
:
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}
To compile and run the program, run:
go run hello-world.go
To compile the program, run:
go build hello-world.go
To run the compiled program, run:
./hello-world
Screenshot: Go running in VS Code
Keywords
- go
- programming language
- compiled