package config type Server struct { Port int `yaml:"port" env:"SERVER_PORT"` } type Config struct { Server Server `yaml:"server"` } var c *Config func Load(p ...string) error { return nil }