Skip to content

An opinionated way of structuring Go code

License

Notifications You must be signed in to change notification settings

abeltay/go-template

Repository files navigation

Go Template

Setup

  1. Install Go
  2. Install Docker
  3. make up
  4. make migrate
  5. make install-sqlboiler

Generate code

  1. make generate-sqlboiler
  2. make generate-mocks

Testing

  1. Start the database by running make up
  2. make migrate
  3. make test
  4. (Optional) After completion of your tests, make down

Clean-up

To delete database and migrate again: make clean

About

An opinionated way of structuring Go code

Topics

Resources

License

Stars

Watchers

Forks