Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConfigDoesNotExist = errors.New("ErrConfigDoesNotExist")
View Source
var ErrConfigDoesNotHaveWiki = errors.New("ErrConfigDoesNotHaveWiki")
Functions ¶
func Get ¶
func Get() (*WikiConfig, *ConfigRoot, error)
func GetConfigFilePath ¶
func ImportExtensionsMedia ¶
func ImportExtensionsMedia(config *WikiConfig) []string
func ImportExtensionsPage ¶
func ImportExtensionsPage() []string
func Set ¶
func Set(configRoot *ConfigRoot) error
Types ¶
type ConfigRoot ¶
type ConfigRoot struct {
Wikis []WikiConfig `json:"wikis"`
Default string `json:"default"`
Editor string `json:"editor"`
}
func GetAll ¶
func GetAll() (*ConfigRoot, error)
func GetConfigFromPath ¶ added in v0.2.0
func GetConfigFromPath(configFilePath string) (*ConfigRoot, error)
type UserSettings ¶ added in v0.2.0
type UserSettings struct {
Editor string
}
var DefaultUserSettings *UserSettings = &UserSettings{
Editor: default_editor,
}
func GetUserSettings ¶ added in v0.2.0
func GetUserSettings(configRoot *ConfigRoot) *UserSettings
Click to show internal directories.
Click to hide internal directories.