Hello World in Go
19 January 2025 / 1 min read
This is how you write a simple Hello World app in Go:
package main
import fmt
func main() {
fmt.Println("Hello World")
}
Now you can run this code with go run
or compile it with go build
.
19 January 2025 / 1 min read
This is how you write a simple Hello World app in Go:
package main
import fmt
func main() {
fmt.Println("Hello World")
}
Now you can run this code with go run
or compile it with go build
.