Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleWith ¶
func HandleWith(args []string, opts HandleOpts) error
HandleWith is the injectable entry used by doctests. args are the argv after "kool go modcache".
Types ¶
type HandleOpts ¶
HandleOpts injects writers for tests and production defaults.
type ModuleJSON ¶
type ModuleJSON struct {
Path string `json:"path"`
Newest string `json:"newest"`
Toolchain bool `json:"toolchain,omitempty"`
Versions []VersionJSON `json:"versions"`
}
type Report ¶
type Report struct {
ModCache string `json:"modCache"`
TotalBytes int64 `json:"totalBytes"`
ExtractedBytes int64 `json:"extractedBytes"`
DownloadBytes int64 `json:"downloadBytes"`
VCSBytes int64 `json:"vcsBytes"`
ToolchainBytes int64 `json:"toolchainBytes"`
ToolchainVers int `json:"toolchainVersions"`
ModulePaths int `json:"modulePaths"`
Versions int `json:"versions"`
MultiVersion int `json:"multiVersion"`
LegacyVersions int `json:"legacyVersions"`
LegacyBytes int64 `json:"legacyBytes"`
SaveBytes int64 `json:"saveBytes"`
ReposScanned int `json:"reposScanned,omitempty"`
GoModules int `json:"goModules,omitempty"`
Modules []ModuleJSON `json:"modules"`
Suggestions []SuggestionJSON `json:"suggestions"`
// contains filtered or unexported fields
}
type SuggestionJSON ¶
Click to show internal directories.
Click to hide internal directories.