Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetermineEnv ¶
func DetermineEnv() string
DetermineEnv helps to determine the location of the config file based on platform or flags during running of GoPage
Types ¶
type Config ¶
type Config struct {
Server ServerConfigurations
Directories DirectoriesConfigurations
}
Config is a struct to contain the full config.yml file with multiple sections
func LoadConfig ¶
LoadConfig is needed for viper to load the config file
type DirectoriesConfigurations ¶
type DirectoriesConfigurations struct {
StaticAssets string
Templates string
Data string
Plugin string
ServerSetting string
UserSetting string
Script string
}
DirectoriesConfigurations struct contains the options within the yaml specific to the location of other data
type ServerConfigurations ¶
type ServerConfigurations struct {
Port int
}
ServerConfigurations struct contains the options within the yaml specific to the server
Click to show internal directories.
Click to hide internal directories.