Imports #
"cmd/go/internal/modfetch/codehost"
"encoding/json"
"time"
"cmd/go/internal/modfetch/codehost"
"encoding/json"
"time"
type moduleErrorNoMethods ModuleError
type ModuleError struct {
Err string
}
type ModulePublic struct {
Path string `json:",omitempty"`
Version string `json:",omitempty"`
Query string `json:",omitempty"`
Versions []string `json:",omitempty"`
Replace *ModulePublic `json:",omitempty"`
Time *time.Time `json:",omitempty"`
Update *ModulePublic `json:",omitempty"`
Main bool `json:",omitempty"`
Indirect bool `json:",omitempty"`
Dir string `json:",omitempty"`
GoMod string `json:",omitempty"`
GoVersion string `json:",omitempty"`
Retracted []string `json:",omitempty"`
Deprecated string `json:",omitempty"`
Error *ModuleError `json:",omitempty"`
Sum string `json:",omitempty"`
GoModSum string `json:",omitempty"`
Origin *codehost.Origin `json:",omitempty"`
Reuse bool `json:",omitempty"`
}
func (m *ModulePublic) String() string
UnmarshalJSON accepts both {"Err":"text"} and "text", so that the output of go mod download -json can still be unmarshaled into a ModulePublic during -reuse processing.
func (e *ModuleError) UnmarshalJSON(data []byte) error
Generated with Arrow