Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModuleError ¶
type ModuleError struct {
Err string
}
func (*ModuleError) UnmarshalJSON ¶
func (e *ModuleError) UnmarshalJSON(data []byte) error
UnmarshalJSON accepts both {"Err":"text"} and "text", so that the output of go mod download -json can still be unmarshalled into a ModulePublic during -reuse processing.
type ModulePublic ¶
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"` Origin *codehost.Origin `json:",omitempty"` Reuse bool `json:",omitempty"` }
func (*ModulePublic) String ¶
func (m *ModulePublic) String() string
Click to show internal directories.
Click to hide internal directories.