Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Latest ¶
type Latest struct {
//Name 是 asset 的文件名
Name string
// URL 是 release 上传文件的 URL
URL string
// version 是解析后的 *Version
Version *semver.Version
}
Latest 表示当前操作系统和架构的最新 release asset。
type ReleaseResp ¶
type ReleaseResp struct {
TagName string `json:"tag_name,omitempty"`
Assets []struct {
Name string `json:"name,omitempty"`
BrowserDownloadURL string `json:"browser_download_url,omitempty"`
} `json:"assets,omitempty"`
}
ReleaseResp 表示仓库中的 GitHub release 和 asset。
Click to show internal directories.
Click to hide internal directories.