Add config package with build-tag-switched dev/prod environments, structured logging via zerolog, Taskfile for dev workflow, golangci-lint config, testutil package, and improved DB setup with proper SQLite pragmas and cleanup. Rename sqlc output package from gen to repository. Switch to allowlist .gitignore, Alpine+UPX+scratch Dockerfile, and CI pipeline with test/lint gates before deploy.
10 lines
110 B
Go
10 lines
110 B
Go
//go:build dev
|
|
|
|
package config
|
|
|
|
func Load() *Config {
|
|
cfg := loadBase()
|
|
cfg.Environment = Dev
|
|
return cfg
|
|
}
|