Go/Quick Start

From Fundamental Ramen
Jump to navigation Jump to search

Create a module

go mod init sandbox/hello
touch hello.go


package main

import "fmt"

func main() {
	fmt.Println("Hello, World!")
}
go run .

Run