Documentation ¶
Index ¶
Constants ¶
View Source
const ConfigFileName = "novus.yml"
Variables ¶
This section is empty.
Functions ¶
func ConfigFileExists ¶
func ConfigFileExists() bool
func SetAppName ¶
func SetAppName(name string)
func WriteDefaultFile ¶
func WriteDefaultFile(appName string)
Types ¶
type NovusConfig ¶
type NovusConfig struct { AppName string `yaml:"appName" validate:"required"` Routes []shared.Route `yaml:"routes" validate:"required,unique_routes,dive"` }
func LoadFile ¶
func LoadFile() (NovusConfig, bool)
Click to show internal directories.
Click to hide internal directories.