fetcher

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const AWESOMECACHEFOLDER = ".awsomecache"
View Source
const AWESOMEREPOURL = "https://github.com/sindresorhus/awesome/"
View Source
const RAWGITHUBUSERCONTENT = "https://raw.githubusercontent.com"

Variables

This section is empty.

Functions

func CacheFileExists

func CacheFileExists(filename string) bool

func CacheFileName

func CacheFileName(url string) string

func CacheFileUptoDate

func CacheFileUptoDate(filename string) bool

func CacheFolderExists

func CacheFolderExists() bool

func CreateCacheFolder

func CreateCacheFolder() bool

func FetchAwsomeRepo

func FetchAwsomeRepo(repourl string) (string, error)

func FetchAwsomeRootRepo

func FetchAwsomeRootRepo() (string, error)

func GetCacheFolderPath

func GetCacheFolderPath() string

func GetCachePath

func GetCachePath(url string) string

func GetPossibleReadmeFileURLs

func GetPossibleReadmeFileURLs(repourl string) []string

func IsOlderThanOneDay

func IsOlderThanOneDay(t time.Time) bool

func PadLeft

func PadLeft(str, pad string, lenght int) string

func SaveCache

func SaveCache(filename string, text string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL