Skip to content

Instantly share code, notes, and snippets.

@chayandatta
Created May 7, 2023 07:42
Show Gist options
  • Save chayandatta/fe6aa58e293b5907d9eb2d103630211f to your computer and use it in GitHub Desktop.
Save chayandatta/fe6aa58e293b5907d9eb2d103630211f to your computer and use it in GitHub Desktop.
How to start a Go project after cloning into your machine

go mod init <package-name>

go mod tidy

go build

go run [if this doesn't work then do the next step]

go run main.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment