Steps
- Installation: Go - Installation
- Create below the base path, your package directory and it the below source file
- Source hello.go
package main
import "fmt"
func main() {
fmt.Printf("hello, world\n")
}
- Compile it
go install base_path/package/hello