Documentation ¶
Index ¶
Constants ¶
View Source
const ( // File is the default name of the JSON file where the config written. // The user can pass an alternate filename when using the CLI. File = ".exercism.json" // DirExercises is the default name of the directory for active users. // Make this non-exported when handlers.Login is deleted. DirExercises = "exercism" )
Variables ¶
View Source
var ( // Home by default will contact the location of your home directory. Home string // XDGConfigHome will contain $XDG_CONFIG_HOME if it exists. XDGConfigHome string )
Functions ¶
func Config ¶
Config will return the correct input path given any input. Blank input will return the default configuration location. Non-blank input will expand home to be an absolute path. If the target is known to be a directory, the config filename will be appended.
func Exercises ¶
Exercises will return the correct exercises path given any input. Blank input will return the default location for exercises. Non-blank input will expand home to be an absolute path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.