Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseURLToFilename ¶
BaseURLToFilename turns the base of a URL (scheme, hostname, port) into a valid filename. This method replaces the port part with a special string token (because ":" cannot be used in filenames on some platforms).
func LookupBoolEnv ¶ added in v0.9.25
func LookupIntEnv ¶ added in v0.9.25
func UrlToFilename ¶
UrlToFilename turns the provided URL into a hashed filename. URLs can contain characters that cannot be used in filenames (like "?", "#", ":"), so in order to cache them properly, they are deterministically hashed into ASCII strings.
Types ¶
type GistCommit ¶ added in v0.9.25
type GistCommit struct {
Version string `json:"version"`
}
func GetLastGistCommit ¶ added in v0.9.25
func GetLastGistCommit(gistID string) (*GistCommit, error)
type GithubGist ¶ added in v0.9.23
type GithubGist struct {
Description string `json:"description"`
ID string `json:"id"`
Owner struct {
Login string `json:"login"`
} `json:"owner"`
}
func FetchGithubGist ¶ added in v0.9.23
func FetchGithubGist(gistID string) (*GithubGist, error)
type GithubRepo ¶ added in v0.6.1
type GithubRepo struct {
Name string
FullName string `json:"full_name"`
Description string
HtmlUrl string `json:"html_url"`
StargazersCount int `json:"stargazers_count"`
Topics []string
}
func FetchGithubRepository ¶ added in v0.9.23
func FetchGithubRepository(owner string, name string) (*GithubRepo, error)
Click to show internal directories.
Click to hide internal directories.