GOLANG RUN & COMPILE
In the previous post, we have discussed how to install Go on Linux. In this post, We will discuss how to compile and run a Go program.
Create folder HelloWorld
CompileIn the previous post, we have discussed how to install Go on Linux. In this post, We will discuss how to compile and run a Go program.
Create folder HelloWorld
mkdir HelloWorld
cd HelloWorld
Create file HelloWorld.gotouch HelloWorld.go
Copy below code into HelloWorld.go filepackage main
import "fmt"
func main() {
fmt.Println("Hello, World")
}
go build
Run
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above../HelloWorld
Comments
Post a Comment