Documentation ¶
Overview ¶
Package mod provides access to Go module metadata.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsMetaPackage ¶
IsMetaPackage checks if name is a reserved package name that expands to multiple packages.
Types ¶
type Infoer ¶
func NewInfoCache ¶
NewInfoCache provides an in-memory cache in front of an Infoer.
type ModuleDatabase ¶
func NewModuleProxy ¶
func NewModuleProxy(c *http.Client, u *url.URL) ModuleDatabase
NewModuleProxy builds a module database backed by the module proxy API at the supplied base URL, using the given HTTP client for requests.
func NewOfficialModuleProxy ¶
func NewOfficialModuleProxy(c *http.Client) ModuleDatabase
NewOfficialModuleProxy builds a module database backed by the official module proxy at https://proxy.golang.org, using the given client for requests.
Click to show internal directories.
Click to hide internal directories.