Commit Graph

4 Commits (03827874cfc51b4be6709459d5263ef87f31dbe4)

Author SHA1 Message Date
Jan Dittberner 03827874cf Configure golangci-lint and apply suggestions 4 years ago
Jan Dittberner 29a7a1c90c Apply Apache License 2.0 5 years ago
Jan Dittberner 94dcb5bd75 Use static assets for HTML templates
- implement custom http.Filesystem boardvoting.AssetFS
- replace "footer" and "header" with "footer.html" and "header.html"
- change renderTemplate to use Assets
- use boardvoting.GetAssetFS() with http.Fileserver
7 years ago
Jan Dittberner 4dd5e09820 Embed database migrations
- switch from goose to github.com/rubenv/sql-migrate
- move assets (static, templates, migrations) to boardvoting package
- add generated boardvoting/assets.go
- remove unused static files from static directory
- add package db with db migration configuration
7 years ago