Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProxyClient ¶
type ProxyClient struct {
URL string
}
ProxyClient is a client for the module proxy
func NewProxyClient ¶
func NewProxyClient(url string) ProxyClient
NewProxyClient returns a new ProxyClient
func (*ProxyClient) LatestVersion ¶
func (c *ProxyClient) LatestVersion(path string) (string, error)
LatestVersion gets the latest module version from the proxy
func (*ProxyClient) ModuleName ¶
func (c *ProxyClient) ModuleName(path string) (string, error)
ModuleName gets the name of a module from the proxy
func (*ProxyClient) ProxyDownload ¶
func (c *ProxyClient) ProxyDownload(path string) (string, error)
ProxyDownload downloads a package from proxy.golang.org
Click to show internal directories.
Click to hide internal directories.