Documentation
¶
Index ¶
Constants ¶
View Source
const DEFAULT_PROXY_URL = "https://proxy.golang.org"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct { Pkg string Value string Hash bool ConstraintCheck *semver.Constraints // contains filtered or unexported fields }
func (*Resolver) GithubFallbackResolveVersion ¶ added in v0.1.1
func (*Resolver) ParseVersion ¶
Parse the given string to be either a semver version string or a commit hash
func (*Resolver) ResolveClosestVersion ¶
Resolve the closes version to the given semver from the proxy
func (*Resolver) ResolveLatestVersion ¶
func (v *Resolver) ResolveLatestVersion() (VersionInfo, error)
resolve the latest version from the proxy
func (*Resolver) ResolveVersion ¶
Resolve the version for the given package by checking with the proxy for either the specified version or getting the latest version on the proxy
type VersionInfo ¶
Click to show internal directories.
Click to hide internal directories.