Documentation
¶
Index ¶
Constants ¶
View Source
const ( ContentHost = "https://raw.githubusercontent.com" // ContentURLTpl eg: https://raw.githubusercontent.com/gookit/slog/master/README.md ContentURLTpl = "https://raw.githubusercontent.com/%s/%s/%s" )
Variables ¶
This section is empty.
Functions ¶
func ContentURL ¶
ContentURL for GitHub repo file
Types ¶
type GitHub ¶
type GitHub struct {
*gitx.Config
// GitHub 文件, Releases, archive, gist, raw.githubusercontent.com 文件代理加速下载服务.
// eg: https://ghproxy.com
ProxyHost string `json:"proxy_host"`
// Username on https://github.com
Username string `json:"username"`
// Token person token.
Token string `json:"token"`
// BaseApi api url
BaseApi string `json:"base_api"`
}
GitHub config struct
Click to show internal directories.
Click to hide internal directories.