Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GlobalOption is khadijah global config option GlobalOption = new(Option) // UserConfigDir is user config directory, default be "" UserConfigDir string // ConfigFile is user config file name ConfigFile = "config" )
Functions ¶
func LoadOption ¶
func LoadOption() (err error)
LoadOption is the function to Load config option from local path
Types ¶
type Option ¶
type Option struct { Token string `json:"token"` User *User `json:"user"` APIKey string `json:"apiKey"` System *System `json:"system"` }
Option is the basic option for khadijah-wayne
Click to show internal directories.
Click to hide internal directories.