Create a file 1.go with following content
package main
import "fmt"
func main() {
fmt.Println("My First GoLang Program")
}
To run the program, use command
go run 1.go

Create a file 1.go with following content
package main
import "fmt"
func main() {
fmt.Println("My First GoLang Program")
}
To run the program, use command
go run 1.go

To install golang on Ubuntu 18.04, run
apt install golang -y