Versions in this module Expand all Collapse all v0 v0.6.4 Sep 3, 2026 v0.6.3 Jul 30, 2026 Changes in this version + const DefaultServer + const DefaultUserAgent + func HTTPErrorCode(err error) (code int, ok bool) + type Candidate struct + ModulePath string + PackagePath string + type Client struct + func NewClient(options ...Option) *Client + func (c *Client) FetchModule(ctx context.Context, path string) error + func (c *Client) ImportedBy(ctx context.Context, path string, opts *PackageOptions) (*PackageImportedBy, error) + func (c *Client) ImportedByIter(ctx context.Context, path string, options *PackageOptions) iter.Seq2[[]string, error] + func (c *Client) Module(ctx context.Context, path string, opts *ModuleOptions) (*Module, error) + func (c *Client) Package(ctx context.Context, packagePath string, packageOptions *PackageOptions) (*Package, error) + func (c *Client) Packages(ctx context.Context, modulePath string, opts *ModuleOptions) (*PackagesResponse, error) + func (c *Client) PackagesIter(ctx context.Context, modulePath string, options *ModuleOptions) iter.Seq2[[]PackageInfo, error] + func (c *Client) Search(ctx context.Context, query string, opts *SearchOptions) (*PaginatedResponse[SearchResult], error) + func (c *Client) SearchIter(ctx context.Context, query string, options *SearchOptions) iter.Seq2[[]SearchResult, error] + func (c *Client) Symbols(ctx context.Context, path string, opts *PackageOptions) (*PackageSymbols, error) + func (c *Client) SymbolsIter(ctx context.Context, path string, options *PackageOptions) iter.Seq2[[]Symbol, error] + func (c *Client) Versions(ctx context.Context, path string, opts *ModuleOptions) (*PaginatedResponse[ModuleVersion], error) + func (c *Client) VersionsIter(ctx context.Context, path string, options *ModuleOptions) iter.Seq2[[]ModuleVersion, error] + func (c *Client) Vulnerabilities(ctx context.Context, path string, opts *ModuleOptions) (*PaginatedResponse[Vulnerability], error) + func (c *Client) VulnerabilitiesIter(ctx context.Context, path string, options *ModuleOptions) iter.Seq2[[]Vulnerability, error] + type Error struct + Candidates []Candidate + Code int + Fixes []string + Message string + func (e *Error) Error() string + type HTTPError int + func (h HTTPError) Error() string + type License struct + Contents string + FilePath string + Types []string + type Module struct + CommitTime time.Time + GoModContents string + HasGoMod bool + IsLatest bool + IsRedistributable bool + IsStandardLibrary bool + Licenses []License + Path string + Readme *Readme + RepoURL string + Version string + type ModuleOptions struct + Filter string + Licenses bool + Limit int + Module string + PseudoVersions bool + Readme bool + Token string + Version 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 Option func(*Client) + func WithHTTPClient(httpClient *http.Client) Option + func WithServer(server string) Option + func WithUserAgent(userAgent string) Option + type Package struct + Docs string + GOARCH string + GOOS string + Imports []string + IsLatest bool + IsRedistributable bool + IsStandardLibrary bool + Licenses []License + ModulePath string + Name string + Path string + Synopsis string + Version string + type PackageImportedBy struct + ImportedBy PaginatedResponse[string] + ModulePath string + Version string + type PackageInfo struct + IsRedistributable bool + Name string + Path string + Synopsis string + type PackageOptions struct + Doc string + Examples bool + Filter string + GOARCH string + GOOS string + Imports bool + Licenses bool + Limit int + Module string + Token string + Version string + type PackageSymbols struct + ModulePath string + Symbols PaginatedResponse[Symbol] + Version string + type PackagesResponse struct + IsStandardLibrary bool + ModulePath string + Packages PaginatedResponse[PackageInfo] + Version string + type PaginatedResponse struct + Items []T + NextPageToken string + Total int + type Readme struct + Contents string + Filepath string + type SearchOptions struct + Filter string + Limit int + Symbol string + Token string + type SearchResult struct + ModulePath string + PackagePath string + Synopsis string + Version string + type Symbol struct + Kind string + Name string + Parent string + Synopsis string + type Vulnerability struct + Details string + FixedVersion string + ID string + Summary string