17 lines
198 B
Go
17 lines
198 B
Go
|
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
|
||
|
}
|