Files
sablier/config/server.go
2022-11-02 23:15:06 -04:00

14 lines
268 B
Go

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