Files
nettopo-go/internal/config/config.go
T
Andrey Lutsenko 284794ec8d Initial scaffold and technical specification
Made-with: Cursor
2026-04-09 21:40:04 +10:00

19 lines
203 B
Go

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,
}
}