SyntaxFix
Write A Post
Hire A Developer
Questions
go run . will run all of your files. The entry point is the function main() which has to be unique to the main package.
go run .
main()
main
Another option is to build the binary with go build and run it.
go build