First blog post, just saying hi to the world ;)
Write the following code into a file appropriately named: helloworld.go
:
package main
import "fmt"
func main() {
fmt.Println("Hello World!")
}
Then open a terminal in the directory where the above file is located and run the following command:
go run helloworld.go
If the output you see on the screen is “Hello, World!”, then
Learn more Go by following the official Go Tour
Happy coding!