Versions in this module Expand all Collapse all v0 v0.0.3 Dec 16, 2017 Changes in this version + var ConfigPath = filepath.Join(GetUserHomeDir(), ".uipgo.json") + func FetchConfig(ctx *cli.Context, conf *Settings) + func GetUserHomeDir() string + func ShowDownloadProgress(done chan int64, bar *uiprogress.Bar, path string, total int64) + type Settings struct + StoragePath string + func (s *Settings) Fetch() (*Settings, error) + func (s *Settings) Store() (*Settings, error) v0.0.2 Dec 11, 2017 Changes in this version + const NOOFIMAGES + func Check(e error) + func DownloadFile(dir string, filename string, rawurl string, wg *sync.WaitGroup) + func GetAndStoreImages(sites map[string][]string, c *cli.Context) + type DesktopprAPIResponse struct + Images []DesktopprImage + type DesktopprImage struct + Image DesktopprResponseURL + func (i DesktopprImage) Name() string + func (i DesktopprImage) URL() string + type DesktopprResponseURL struct + URL string + type Image interface + Name func() string + URL func() string + func GetDesktopprImages(rawurl string, wg *sync.WaitGroup) []Image + func GetUnsplashImages(rawurl string, wg *sync.WaitGroup) []Image + type UnsplashImage struct + URLs map[string]string + func (i UnsplashImage) Name() string + func (i UnsplashImage) URL() string