Compare commits

..

No commits in common. "b07a0dd9d2ecb75b169056f844abbd9105f5646b" and "3eec2b8d1d17fd77ee8fdbae2701d5591552a46a" have entirely different histories.

View File

@ -31,29 +31,21 @@ Alternately, even just feedback is great:
# Design Decisions # Design Decisions
* no TLS in this code * TLS is terminated somewhere else, like on a sidecar or reverse proxy.
* do it somewhere else, like on a sidecar or reverse proxy
* this might have to change to support http > 1 later
* logging: [rs/zerolog](https://github.com/rs/zerolog) * logging: [rs/zerolog](https://github.com/rs/zerolog)
* configuration: [spf13/viper](https://github.com/spf13/viper) * configuration: [spf13/viper](https://github.com/spf13/viper)
* used as a wrapper around env vars, because of typed getters * used as a wrapper around env vars
* router is Chi: [go-chi/chi](https://github.com/go-chi/chi) * router is Chi: [go-chi/chi](https://github.com/go-chi/chi)
* Prometheus-style metrics via [slok/go-http-metrics](https://github.com/slok/go-http-metrics) * Prometheus-style metrics via [slok/go-http-metrics](https://github.com/slok/go-http-metrics)
* code formatted with [mvdan.cc/gofumpt](https://mvdan.cc/gofumpt)
* code style checked with [golangci/golangci-lint](https://github.com/golangci/golangci-lint)
# Pending Design Decisions
* database: TBD (thinking about [go-gorm/gorm](https://github.com/go-gorm/gorm)) * database: TBD (thinking about [go-gorm/gorm](https://github.com/go-gorm/gorm))
* templating: TBD (suggestions welcome) * templating: TBD (suggestions welcome)
# TODO # TODO
* Basic HTML Templates
* Database Boilerplate * Database Boilerplate
* Sessions Middleware * Sessions Middleware
* sync.Once example for re-compiling templates * sync.Once example for precompiling templates
* Bundling static assets into binary * Bundling Static Assets Into Binary
# Known Bugs (more TODO) # Known Bugs (more TODO)