in config/cache.go [82:93]
func LoadCache(c *Config) interface{} {
cacheFile := c.CacheFile()
Debug("Trying to read API cache from:", cacheFile)
cache, err := ioutil.ReadFile(cacheFile)
if err != nil {
fmt.Fprintf(os.Stderr, "Loaded in-built API cache. Failed to read API cache, please run 'sync'.\n")
cache = []byte(preCache)
}
var data map[string]interface{}
_ = json.Unmarshal(cache, &data)
return c.UpdateCache(data)
}