This commit is contained in:
sam boyer 2017-10-12 22:41:27 -04:00
Родитель 6bbd19d908
Коммит 8de86c40c3
1 изменённых файлов: 23 добавлений и 0 удалений

Просмотреть файл

@ -741,6 +741,29 @@ const (
ctExportTree
)
func (ct callType) String() string {
switch ct {
case ctHTTPMetadata:
return "Retrieving go get metadata"
case ctListVersions:
return "Retrieving latest version list"
case ctGetManifestAndLock:
return "Reading manifest and lock data"
case ctListPackages:
return "Parsing PackageTree"
case ctSourcePing:
return "Checking for upstream existence"
case ctSourceInit:
return "Initializing local source cache"
case ctSourceFetch:
return "Fetching latest data into local source cache"
case ctExportTree:
return "Writing code tree out to disk"
default:
panic("unknown calltype")
}
}
// callInfo provides metadata about an ongoing call.
type callInfo struct {
name string