/Go-Activities

My compiled Go program file

Primary LanguageGo

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