Go Online IDE & Code Editor for Technical Interviews
Running Go 1.18 - IntelliSense is not available
You should declare a func main()
in a package main
, like so:
package main
import "fmt"
func main() {
fmt.Println("Hello, world")
}
Code language: Go (go)