...
go build
Install it
go install
Functions
Code Block |
---|
package main
import (
"fmt"
"error"
)
func main() {
result := sum(2,3)
fmt.Println(result) |
Commands
Command | Description |
---|---|
go run <src.go> | Run some code |
go build | Compile the code. Outputs to local folder. Executable has folder as name. |
go install | Compiles and places the output in workspace/bin |
go env GOPATH | Outputs the default workspace folder |
...