Documentation ¶
Index ¶
Constants ¶
View Source
const NilDate = "Mon Jan 1 00:00:00 UTC 0001"
NilDate stores the string a empty Time type gets printed in Unix mode
Variables ¶
This section is empty.
Functions ¶
func GetConfig ¶
GetConfig loads default values and overwrites them by the ones in a file, or creates a file with them if there is no file
func LoadConfig ¶
LoadConfig reads the configuration file in the specified path
Types ¶
type Config ¶
type Config struct { DatabaseConnection string UseSocket bool BindAddress string BindSocket string ContentDirectory string TemplatesDirectory string AssetsDirectory string SymbolicatorPath string }
Config holds the structure of the configuration
var C Config
C is the actual configuration read from the file
Click to show internal directories.
Click to hide internal directories.