web_java

package
v1.0.2-patch Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultURL = "https://www.oracle.com/cn/java/technologies/downloads/archive/"
)

Variables

This section is empty.

Functions

func NewURLUnreachableError

func NewURLUnreachableError(url string, err error) error

NewURLUnreachableError 返回URL不可达错误实例

Types

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

func NewCollector

func NewCollector(url string) (*Collector, error)

NewCollector 返回采集器实例

func (*Collector) LatestFiveVersion

func (c *Collector) LatestFiveVersion() (items []*util.Version, err error)

LatestFiveVersion 返回最新的5个大版本

func (*Collector) LatestSubPackage

func (c *Collector) LatestSubPackage(goos, goarch string) (p *util.Package, err error)

LatestSubPackage Compressed Archive 找到第一个就返回

type URLUnreachableError

type URLUnreachableError struct {
	// contains filtered or unexported fields
}

URLUnreachableError URL不可达错误

func (*URLUnreachableError) Error

func (e *URLUnreachableError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL