Documentation
¶
Index ¶
- Constants
- func DownloadContent(url string) (content []byte, err error)
- func GetAvailable() (all []string, lts []string, current []string, stable []string, ...)
- func GetMeta() map[string]VersionNode
- func IsUnstable(element FileData) bool
- func SetProxy(p string, verifyssl bool)
- type FileData
- type VersionNode
Constants ¶
View Source
const (
// DefaultURL 默认镜像地址
DefaultURL = "https://nodejs.org/dist/"
)
Variables ¶
This section is empty.
Functions ¶
func DownloadContent ¶
func GetAvailable ¶
func GetAvailable() (all []string, lts []string, current []string, stable []string, unstable []string, npm map[string]string, err error)
GetAvailable Retrieve the remotely available versions
func GetMeta ¶
func GetMeta() map[string]VersionNode
func IsUnstable ¶
IsUnstable Identifies an unstable old version.
Types ¶
type FileData ¶
type FileData struct {
Version string `json:"version"`
Date string `json:"date"`
Files []string `json:"files"`
Npm string `json:"npm,omitempty"`
V8 string `json:"v8"`
Uv string `json:"uv,omitempty"`
Zlib string `json:"zlib,omitempty"`
Openssl string `json:"openssl,omitempty"`
Modules string `json:"modules,omitempty"`
Lts any `json:"lts"`
Security bool `json:"security"`
}
type VersionNode ¶
func (*VersionNode) FindPackage ¶
func (v *VersionNode) FindPackage(kind, goos, goarch string) (*util.Package, error)
FindPackage 返回指定操作系统和硬件架构的版本包
Click to show internal directories.
Click to hide internal directories.