Versions in this module Expand all Collapse all v0 v0.1.0 Jun 25, 2026 Changes in this version + type APIError struct + Code int + Fixes []string + Message string + func (e *APIError) Error() string + type Client struct + func NewClient(opts ...ClientOption) *Client + func (c *Client) ImportedBy(ctx context.Context, path string, opts ...ImportedByOptions) (*Page[string], error) + func (c *Client) ImportedByIter(ctx context.Context, path string, opts ...ImportedByOptions) iter.Seq2[string, error] + func (c *Client) Module(ctx context.Context, path string, opts ...ModuleOptions) (*ModuleInfo, error) + func (c *Client) ModulePackages(ctx context.Context, path string, opts ...ListOptions) (*Page[ModulePackage], error) + func (c *Client) ModulePackagesIter(ctx context.Context, path string, opts ...ListOptions) iter.Seq2[ModulePackage, error] + func (c *Client) Package(ctx context.Context, path string, opts ...PackageOptions) (*PackageInfo, error) + func (c *Client) Search(ctx context.Context, query string, opts ...SearchOptions) (*Page[SearchResult], error) + func (c *Client) SearchIter(ctx context.Context, query string, opts ...SearchOptions) iter.Seq2[SearchResult, error] + func (c *Client) Symbols(ctx context.Context, path string, opts ...SymbolsOptions) (*Page[Symbol], error) + func (c *Client) SymbolsIter(ctx context.Context, path string, opts ...SymbolsOptions) iter.Seq2[Symbol, error] + func (c *Client) Versions(ctx context.Context, path string, opts ...VersionsOptions) (*Page[ModuleVersion], error) + func (c *Client) VersionsIter(ctx context.Context, path string, opts ...VersionsOptions) iter.Seq2[ModuleVersion, error] + func (c *Client) Vulnerabilities(ctx context.Context, path string, opts ...VulnsOptions) (*Page[Vulnerability], error) + type ClientOption func(*Client) + func WithBaseURL(url string) ClientOption + func WithHTTPClient(c *http.Client) ClientOption + type ErrAmbiguousPath struct + Candidates []string + Path string + func (e *ErrAmbiguousPath) Error() string + type ErrRateLimit struct + RetryAfter int64 + func (e *ErrRateLimit) Error() string + type ImportedByOptions struct + Module string + Version string + type ListOptions struct + Filter string + Limit int + Token string + type ModuleInfo struct + CommitTime time.Time + HasGoMod bool + IsLatest bool + IsRedistributable bool + IsStandardLibrary bool + Path string + RepoURL string + Version string + type ModuleOptions struct + Licenses bool + Readme bool + Version string + type ModulePackage struct + IsRedistributable bool + Name string + Path string + Synopsis string + type ModuleVersion struct + CommitTime time.Time + Deprecated bool + DeprecationReason string + HasGoMod bool + IsRedistributable bool + LatestVersion string + ModulePath string + Retracted bool + RetractionReason string + Version string + type PackageInfo struct + CommitTime time.Time + GOARCH string + GOOS string + IsLatest bool + IsRedistributable bool + IsStandardLibrary bool + ModulePath string + Name string + Path string + Synopsis string + Version string + type PackageOptions struct + Doc string + Examples bool + GOARCH string + GOOS string + Imports bool + Licenses bool + Module string + Version string + type Page struct + Items []T + NextPageToken string + Total int + func (p Page[T]) HasMore() bool + type RateLimit struct + Limit int + Remaining int + Reset int64 + type SearchOptions struct + Symbol string + type SearchResult struct + ModulePath string + Name string + PackagePath string + Synopsis string + Version string + type Symbol struct + Kind string + Name string + Parent string + Synopsis string + type SymbolsOptions struct + GOARCH string + GOOS string + Module string + Version string + type VersionsOptions struct + type Vulnerability struct + Details string + FixedVersion string + ID string + Summary string + type VulnsOptions struct + Module string + Version string