owl-blogs/config/config.go

26 lines
331 B
Go

package config
import "os"
const (
SITE_CONFIG = "site_config"
)
type Config interface {
}
type EnvConfig struct {
}
func getEnvOrPanic(key string) string {
value, set := os.LookupEnv(key)
if !set {
panic("Environment variable " + key + " is not set")
}
return value
}
func NewConfig() Config {
return &EnvConfig{}
}