This will guide you on how setup a go lang project through terminal. with Go you can now start your project inside any folder.
there a several steps you need to do.
Here are the step
Go into the root of the project and type in the following ensure you replace the path of github to your project to anything else, it doesn't have to be github you may chose your own path
go mod init "github.com/codenathan/gostart"
Create a main.go file and you can create a simple hello world
package main
import "fmt"
func main() {
fmt.Println("Hello, World")
}
the above is a simple hello world file in Go
If you require some modules then you can install it using the go get command whereby here i am getting the mux pacakge
go get -u github.com/gorilla/mux
Finally to run your files in one go.
go run .