Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Package ¶
type Package struct {
Path string // Import path
Version string // Version
IsGitHub bool // Whether it's a GitHub repository
IsStarred bool // Whether it's starred by the user
Size int64 // Size in bytes
}
Package represents a Go module dependency
func NewPackage ¶
NewPackage creates a new Package instance
func (*Package) FormattedSize ¶
FormattedSize returns the size in a human-readable format
func (*Package) GitHubRepoPath ¶
GitHubRepoPath returns the GitHub repository path (owner/repo) Returns empty string if not a GitHub repository
func (*Package) GitHubURL ¶
GitHubURL returns the GitHub repository URL Returns empty string if not a GitHub repository
func (*Package) PkgGoDevURL ¶
PkgGoDevURL returns the pkg.go.dev URL for the package
func (*Package) StarSymbol ¶
StarSymbol returns the star symbol based on the starred status Returns empty string if not a GitHub repository
Click to show internal directories.
Click to hide internal directories.