Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownLoader ¶
type DownLoader struct {
Host string
}
func NewDownLoader ¶
func NewDownLoader(host string) *DownLoader
func (DownLoader) GetAllDownload ¶
func (d DownLoader) GetAllDownload() ([]GoVersionInfoList, error)
GetAllDownload returns the All version golang download info
func (DownLoader) GetFeaturedDownload ¶
func (d DownLoader) GetFeaturedDownload() ([]GoVersionInfoLite, error)
GetFeaturedDownload returns the latest version golang download info but with few extra info
type GoVersionInfoFull ¶
type GoVersionInfoFull struct {
GoVersionInfoLite
Arch string `json:"arch,omitempty"`
PackageType string `json:"package_type,omitempty"`
SHA256 string `json:"sha256,omitempty"`
}
type GoVersionInfoList ¶
type GoVersionInfoList struct {
Category string
InfoList []GoVersionInfoFull
}
Click to show internal directories.
Click to hide internal directories.