How to Compile Your DB Migrations into Your Binary Using Goose
playtechnique.io
playtechnique.io
The benefit of this approach with migrations is being able to use golang itself to figure out if a migration should run e.g. you can check an environment variable to see if you're in the dev environment and if you are then you could run a migration to populate your seed data.