Building and Running Go-Programs
This lesson discusses the steps required to build and run a Go program.
We'll cover the following...
The go
command
To compile and link a go program test.go, use:
go build test.go
If you want to compile, link and run the program, use:
go run test.go
where the executable binary is stored in the cache.
If you want to compile, link and install the package pack1
, use:
go install pack1
To remove any ...