mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/go/internal/list: update help info with Deprecated field
Also align Retracted documentation with actual type of []string Fixes #51876 Change-Id: I3b34e53424aa7ee5330eb71adac23510fff91798 Reviewed-on: https://go-review.googlesource.com/c/go/+/394677 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
parent
73475ef035
commit
b9c4d94fdb
2 changed files with 28 additions and 26 deletions
|
|
@ -930,19 +930,20 @@
|
||||||
// applied to a Go struct, but now a Module struct:
|
// applied to a Go struct, but now a Module struct:
|
||||||
//
|
//
|
||||||
// type Module struct {
|
// type Module struct {
|
||||||
// Path string // module path
|
// Path string // module path
|
||||||
// Version string // module version
|
// Version string // module version
|
||||||
// Versions []string // available module versions (with -versions)
|
// Versions []string // available module versions
|
||||||
// Replace *Module // replaced by this module
|
// Replace *Module // replaced by this module
|
||||||
// Time *time.Time // time version was created
|
// Time *time.Time // time version was created
|
||||||
// Update *Module // available update, if any (with -u)
|
// Update *Module // available update (with -u)
|
||||||
// Main bool // is this the main module?
|
// Main bool // is this the main module?
|
||||||
// Indirect bool // is this module only an indirect dependency of main module?
|
// Indirect bool // module is only indirectly needed by main module
|
||||||
// Dir string // directory holding files for this module, if any
|
// Dir string // directory holding local copy of files, if any
|
||||||
// GoMod string // path to go.mod file used when loading this module, if any
|
// GoMod string // path to go.mod file describing module, if any
|
||||||
// GoVersion string // go version used in module
|
// GoVersion string // go version used in module
|
||||||
// Retracted string // retraction information, if any (with -retracted or -u)
|
// Retracted []string // retraction information, if any (with -retracted or -u)
|
||||||
// Error *ModuleError // error loading module
|
// Deprecated string // deprecation message, if any (with -u)
|
||||||
|
// Error *ModuleError // error loading module
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// type ModuleError struct {
|
// type ModuleError struct {
|
||||||
|
|
|
||||||
|
|
@ -222,19 +222,20 @@ When listing modules, the -f flag still specifies a format template
|
||||||
applied to a Go struct, but now a Module struct:
|
applied to a Go struct, but now a Module struct:
|
||||||
|
|
||||||
type Module struct {
|
type Module struct {
|
||||||
Path string // module path
|
Path string // module path
|
||||||
Version string // module version
|
Version string // module version
|
||||||
Versions []string // available module versions (with -versions)
|
Versions []string // available module versions
|
||||||
Replace *Module // replaced by this module
|
Replace *Module // replaced by this module
|
||||||
Time *time.Time // time version was created
|
Time *time.Time // time version was created
|
||||||
Update *Module // available update, if any (with -u)
|
Update *Module // available update (with -u)
|
||||||
Main bool // is this the main module?
|
Main bool // is this the main module?
|
||||||
Indirect bool // is this module only an indirect dependency of main module?
|
Indirect bool // module is only indirectly needed by main module
|
||||||
Dir string // directory holding files for this module, if any
|
Dir string // directory holding local copy of files, if any
|
||||||
GoMod string // path to go.mod file used when loading this module, if any
|
GoMod string // path to go.mod file describing module, if any
|
||||||
GoVersion string // go version used in module
|
GoVersion string // go version used in module
|
||||||
Retracted string // retraction information, if any (with -retracted or -u)
|
Retracted []string // retraction information, if any (with -retracted or -u)
|
||||||
Error *ModuleError // error loading module
|
Deprecated string // deprecation message, if any (with -u)
|
||||||
|
Error *ModuleError // error loading module
|
||||||
}
|
}
|
||||||
|
|
||||||
type ModuleError struct {
|
type ModuleError struct {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue