I want to make some simple scripts in a web of mine written in go: things like a script to run database migrations, generate alert dashboards etc.
I'm wondering what the best method is for doing this. Ideally the scripts would be in the same project, but since I can only have one main method this seems a little difficult.
Options I think I have:
1) have a param to the server binary so I can run something like ./server SETUP (the command)
2) put these scripts in a different repo (Some of the code is pretty specific to the current project)
Is there some standard way to do this in go?