Go/Quick Start

From Fundamental Ramen
< Go
Revision as of 02:30, 22 May 2025 by Tacoball (talk | contribs) (→Run)
Jump to navigation Jump to search

Create a module

Create module and source file.

go mod init sandbox/hello
touch hello.go

Add source code.

package main

import "fmt"

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

Run.

go run .

Work with 2 modules.