Documentation ¶
Index ¶
- Variables
- func New(options ...func(c *client)) *client
- func WithBaseURL(url string) func(c *client)
- func WithHTTPClient(httpClient *http.Client) func(c *client)
- type Change
- type DescribePackageRequest
- type ErrorList
- type ImportedBy
- type ImportedByRequest
- type Imports
- type ImportsRequest
- type License
- type LicensesRequest
- type Package
- type SearchRequest
- type SearchResult
- type SearchResults
- type Version
- type Versions
- type VersionsRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found on pkg.go.dev")
Functions ¶
func WithBaseURL ¶
func WithBaseURL(url string) func(c *client)
func WithHTTPClient ¶
Types ¶
type DescribePackageRequest ¶
type DescribePackageRequest struct {
Package string
}
type ImportedBy ¶
type ImportedByRequest ¶
type ImportedByRequest struct {
Package string
}
type ImportsRequest ¶
type ImportsRequest struct {
Package string
}
type LicensesRequest ¶
type LicensesRequest struct {
Package string
}
type SearchRequest ¶
type SearchResult ¶
type SearchResults ¶
type SearchResults struct {
Results []SearchResult
}
type VersionsRequest ¶
type VersionsRequest struct {
Package string
}
Click to show internal directories.
Click to hide internal directories.