Skip to main content

Hello world

main.go

package main

import "fmt"

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

Để chạy code go ta dùng lệnh go run:

$ go run main.go
Hello, World!