versions

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

README

Go Versions

BuildStatus Go Report Card PkgGoDev codecov

This tool gets go versions from Downloads - The Go Programming Language.

How to use

# no fileter
go-versions

# fileter: os=linux
go-versions -os linux

# fileter: arch=amd64
go-versions -arch amd64

# fileter: os=linux arch=amd64
go-versions -os linux -arch amd64

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	List() ([]string, error)
}

Client accesses a target page

func NewClient

func NewClient(config *Config) Client

NewClient initializes the client

type Config

type Config struct {
	URL        *url.URL
	HTTPClient *http.Client
}

Config describes config for client

type MockClient

type MockClient struct {
	Client
	MockList func() ([]string, error)
}

MockClient is a mock of Client

func (*MockClient) List

func (c *MockClient) List() ([]string, error)

List is a mock of Client.List()

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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