An open API service indexing awesome lists of open source software.

https://github.com/abeltay/go-template

An opinionated way of structuring Go code
https://github.com/abeltay/go-template

go

Last synced: 2 months ago
JSON representation

An opinionated way of structuring Go code

Awesome Lists containing this project

README

        

# Go Template

## Setup

1. Install [Go](https://go.dev/)
1. Install [Docker](https://www.docker.com/)
1. `make up`
1. `make migrate`
1. `make install-sqlboiler`

## Generate code
1. `make generate-sqlboiler`
1. `make generate-mocks`

## Testing

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

## Clean-up

To delete database and migrate again: `make clean`