Skip to content

Latest commit

 

History

History
51 lines (25 loc) · 534 Bytes

README.md

File metadata and controls

51 lines (25 loc) · 534 Bytes

Documentation:

Getting Started:


Installing Go:

To install Go, follow the instructions on the official Go website: https://golang.org/dl/

Running Go Program:

To run a Go program, save the code in a file with a .go extension (e.g., main.go) and use the go run command.

Example:

main.go

package main

import "fmt"

func main() {
    fmt.Println("hello world")
}

Running the Program:


$ go run main.go

Output:

hello world