In this tutorial you will learn how to compile and run a go program from command prompt in windows 10 operating system.
We can generate an executable file in go language by using the command
go build filename.go
We can also give a name for the executable file generated by using -o flag
go build -o Application filename.go
If you are interested in the output of the go program and not worried about the executable file, then we can check the output of our program by using
go run filename.go
our Social Media Pages
/ exampleprogram
/ exampleprogram
/ example_program
Our Website
https://www.ExampleProgram.com
#ExampleProgram