To print your Go environment variables run:
go env
From the root of this project install the Golang libraries with:
go get -u ./...
Example run:
go run donya.go
To build the Go file into an executable for Linux run:
go build donya.go
And generally for Windows:
env GOOS=windows GOARCH=amd64 go build donya.go
To see all the platforms run:
go tool dist list -json
You can install revive
with:
go get -u github.com/mgechev/revive
To clean up the go.sum
file run:
go mod tidy