Simple code not running, new to go

i am new to all this, but i need help.
could someone tell me whats going on with this code.

thanks in advance.

The error message tells you what’s going on:

prog.go:5:8: package format is not in GOROOT (/usr/local/go-faketime/src/format)

It’s fmt, not format. Change your code to:

import "fmt"

func main() {
	fmt.Println("Hello, 世界")
}

Have you done the tour of go? If not:

https://go.dev/tour/welcome/1

1 Like

thank you Sir.