Nolang
A basic template for golang web apps. It's a work in progress
App Dependencies
- chi as the router
- zerolog for logs
- envconfig and godotenv for configuration
- context for managing request contexts
Setup
Make sure you're using golang >= 1.13
(due to dependency on go mod
)
Install air
# Do this outside the project so you can use it with other project
go get -u github.com/cosmtrek/air
Run air
air
Structure
- Everything related to configuration will go to the
config
dir - Your handlers should go to the
controller
dir.
Note: This is a Work-in-Progress
, expect constant changes