Initial scaffold and technical specification

Made-with: Cursor
This commit is contained in:
Andrey Lutsenko
2026-04-09 21:40:04 +10:00
commit 284794ec8d
10 changed files with 487 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package config
import "os"
type Config struct {
HTTPAddr string
}
func FromEnv() Config {
addr := os.Getenv("HTTP_ADDR")
if addr == "" {
addr = ":8080"
}
return Config{
HTTPAddr: addr,
}
}