Documentation
¶
Index ¶
- Constants
- Variables
- func CacheFileExists(filename string) bool
- func CacheFileName(url string) string
- func CacheFileUptoDate(filename string) bool
- func CacheFolderExists() bool
- func CreateCacheFolder() bool
- func FetchAwesomeRepo(repourl string) (string, error)
- func FetchAwesomeRootRepo() (string, error)
- func GetCacheFolderPath() string
- func GetCachePath(url string) string
- func GetPossibleReadmeFileURLs(repourl string) []string
- func IsOlderThanOneDay(t time.Time) bool
- func IsUrl(str string) bool
- func PadLeft(str, pad string, lenght int) string
- func SaveCache(filename string, text string) string
- type FetchError
- type MultiError
- type Progress
Constants ¶
View Source
const AWESOMECACHEFOLDER = ".awesomecache"
View Source
const AWESOMEREPOURL = "https://github.com/sindresorhus/awesome"
View Source
const DOWNLOAD_CONCURRENCY = 4
View Source
const RAWGITHUBUSERCONTENT = "https://raw.githubusercontent.com"
Variables ¶
View Source
var BRANCHES = []string{"/master/", "/main/"}
View Source
var README_PATTERNS = []string{
"README",
"README.MD",
"README.md",
"readme",
"readme.md",
"readme.MD",
}
Functions ¶
func CacheFileExists ¶
func CacheFileName ¶
func CacheFileUptoDate ¶
func CacheFolderExists ¶
func CacheFolderExists() bool
func CreateCacheFolder ¶
func CreateCacheFolder() bool
func FetchAwesomeRepo ¶ added in v0.7.2
func FetchAwesomeRootRepo ¶ added in v0.7.2
func GetCacheFolderPath ¶
func GetCacheFolderPath() string
func GetCachePath ¶
func IsOlderThanOneDay ¶
Types ¶
type FetchError ¶ added in v0.7.2
func (FetchError) Error ¶ added in v0.7.2
func (e FetchError) Error() string
func (FetchError) Unwrap ¶ added in v0.7.2
func (e FetchError) Unwrap() error
type MultiError ¶ added in v0.7.2
type MultiError struct {
Errors []error
}
func (MultiError) Error ¶ added in v0.7.2
func (e MultiError) Error() string
Click to show internal directories.
Click to hide internal directories.