Basic REST app

This commit is contained in:
2026-03-30 18:26:45 +02:00
commit 42f9b974b2
17 changed files with 309 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package envconfig
import "os"
type EnvConfig struct {
Port string
}
func Load() EnvConfig {
port := os.Getenv("PORT")
if port == "" {
port = "4321"
}
return EnvConfig{
Port: port,
}
}