func load()

in config/file.go [65:82]


func load() (*configFile, error) {
	path, err := configPath()
	if err != nil {
		return nil, err
	}
	f, err := os.Open(path)
	if err != nil {
		return nil, err
	}
	defer f.Close()

	var config configFile
	if err := json.NewDecoder(f).Decode(&config); err != nil {
		return nil, fmt.Errorf("failed to load config from %s: %v", path, err)
	}

	return &config, nil
}