Versions in this module Expand all Collapse all v0 v0.1.1 Jun 16, 2026 Changes in this version type Package + IsRedistributable *bool + Name *string + Path *string + Synopsis *string v0.1.0 Jun 14, 2026 Changes in this version + type APIError struct + Body []byte + StatusCode int + func (e *APIError) Error() string + type Candidate struct + ModulePath *string + PackagePath *string + type Client struct + func NewClient(opts ...ClientOption) *Client + func (c *Client) GetImportedBy(ctx context.Context, packagePath string, opts *GetImportedByOptions) (*PackageImportedBy, error) + func (c *Client) GetModule(ctx context.Context, modulePath string, opts *GetModuleOptions) (*Module, error) + func (c *Client) GetPackage(ctx context.Context, packagePath string, opts *GetPackageOptions) (*Package, error) + func (c *Client) GetPackages(ctx context.Context, modulePath string, opts *GetPackagesOptions) (*PackagesResponse, error) + func (c *Client) GetSearch(ctx context.Context, opts *GetSearchOptions) (*PaginatedResponse, error) + func (c *Client) GetSymbols(ctx context.Context, packagePath string, opts *GetSymbolsOptions) (*PackageSymbols, error) + func (c *Client) GetVersions(ctx context.Context, modulePath string, opts *GetVersionsOptions) (*PaginatedResponse, error) + func (c *Client) GetVulns(ctx context.Context, moduleOrPackagePath string, opts *GetVulnsOptions) (*PaginatedResponse, error) + type ClientOption func(*Client) + func WithBasicAuth(ctx context.Context, user, password string) ClientOption + func WithBearerToken(token string) ClientOption + func WithHTTPClient(hc httpi.Doer) ClientOption + func WithHeader(key, value string) ClientOption + type Error struct + Candidates []*Candidate + Code *int64 + Err interface{} + Fixes []string + Message *string + type GetImportedByOptions struct + Filter *string + Limit *int64 + Module *string + Token *string + Version *string + type GetModuleOptions struct + Licenses *bool + Readme *bool + Version *string + type GetPackageOptions struct + Doc *string + Examples *bool + Goarch *string + Goos *string + Imports *bool + Licenses *bool + Module *string + Version *string + type GetPackagesOptions struct + Filter *string + Limit *int64 + Token *string + Version *string + type GetSearchOptions struct + Filter *string + Limit *int64 + Q *string + Symbol *string + Token *string + type GetSymbolsOptions struct + Filter *string + Goarch *string + Goos *string + Limit *int64 + Module *string + Token *string + Version *string + type GetVersionsOptions struct + Filter *string + Limit *int64 + Token *string + type GetVulnsOptions struct + Filter *string + Limit *int64 + Module *string + Token *string + Version *string + type License struct + Contents *string + FilePath *string + Types []string + type Module struct + CommitTime *string + GoModContents *string + HasGoMod *bool + IsLatest *bool + IsRedistributable *bool + IsStandardLibrary *bool + Licenses []*License + Path *string + Readme *Readme + RepoUrl *string + Version *string + type ModuleVersion struct + CommitTime *string + Deprecated *bool + DeprecationReason *string + HasGoMod *bool + IsRedistributable *bool + LatestVersion *string + ModulePath *string + Retracted *bool + RetractionReason *string + Version *string + type Package struct + Docs *string + Goarch *string + Goos *string + Imports []string + IsLatest *bool + IsStandardLibrary *bool + Licenses []*License + ModulePath *string + Version *string + type PackageImportedBy struct + ImportedBy *PaginatedResponse + ModulePath *string + Version *string + type PackageInfo struct + IsRedistributable *bool + Name *string + Path *string + Synopsis *string + type PackageSymbols struct + ModulePath *string + Symbols *PaginatedResponse + Version *string + type PackagesResponse struct + IsStandardLibrary *bool + ModulePath *string + Packages *PaginatedResponse + Version *string + type PaginatedResponse struct + Items []map[string]interface{} + NextPageToken *string + Total *int64 + type Readme struct + Contents *string + Filepath *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