Skip to content

An opinionated way of structuring Go code

License

Notifications You must be signed in to change notification settings

abeltay/go-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1eb5634 · Dec 14, 2024

History

22 Commits
Oct 14, 2023
Dec 31, 2022
Oct 14, 2023
Dec 14, 2024
Dec 14, 2024
Dec 14, 2024
Apr 6, 2024
Oct 14, 2023
Dec 31, 2022
Dec 14, 2024
Oct 14, 2023
Apr 6, 2024
Dec 14, 2024
Dec 14, 2024
Oct 14, 2023

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