Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultPath = "~/.quiz.yaml"
Variables ¶
This section is empty.
Functions ¶
func ExpandPath ¶
Types ¶
type Categories ¶
type Config ¶
type Config interface {
ReadConfig() (*Categories, error)
}
func CreateConfigFromPath ¶
type FileConfig ¶
type FileConfig struct {
// contains filtered or unexported fields
}
func NewFileConfig ¶
func NewFileConfig(fs afero.Fs, path string) *FileConfig
func (*FileConfig) ReadConfig ¶
func (c *FileConfig) ReadConfig() (*Categories, error)
type RemoteConfig ¶
type RemoteConfig struct {
// contains filtered or unexported fields
}
func NewRemoteConfig ¶
func NewRemoteConfig(httpClient *http.Client, url string) *RemoteConfig
func (*RemoteConfig) ReadConfig ¶
func (c *RemoteConfig) ReadConfig() (*Categories, error)
Click to show internal directories.
Click to hide internal directories.