Files
sablier/config/server.go
2022-10-03 20:27:14 +00:00

14 lines
267 B
Go

package config
type Server struct {
Port int `mapstructure:"PORT" yaml:"port" default:"10000"`
BasePath string `mapstructure:"BASEPATH" yaml:"basePath" default:"/"`
}
func NewServerConfig() Server {
return Server{
Port: 10000,
BasePath: "/",
}
}