4 ms·
You don't need a makefile for go. Generally all you need are "go build" "go install" "go test". If you have some generated source you can now used "go generate"
by andrewchambers 12y ago
You don't need a makefile for go. Generally all you need are "go build" "go install" "go test". If you have some generated source you can now used "go generate".
- tmaly 12y agoI use those now, but I want to setup some other ideas such as prompting for the database username/password to write into a config.go before compiling. I did not want to store information like this in a public git repo
- jzs 12y agoI suggest that instead of compiling it into the binary, that you use environment variables instead. Or make it command line flags. Then you can have a bash script that you don't check in that executes the variable with environment variables/ flags.
- Spiritus 12y agoThat doesn't cover non-go files though.