Go Coding Editor for Technical Interviews

Running Go 1.17 - Autocomplete 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)

Try Our Go Editor