Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface {
ReadEntries() (scoring.Entries, error)
WriteEntries(scoring.Entries) error
ReadSearch() Search
WriteSearch(string, int) error
ReadPins() (map[string]string, error)
FindPin(string) (string, bool)
WritePin(string, string) error
RemovePin(string) error
}
Config represents the config directory and all the miscellaneous configuration files we can have in there.
func Setup ¶
Setup setups the config folder from a directory path.
If the directories don't already exists, they are created and if the score file is present, it is loaded.
func SetupDefault ¶
SetupDefault setups the config folder from a directory path.
If the directory path is an empty string, the path is automatically guessed.
Click to show internal directories.
Click to hide internal directories.