modinfo

package
v1.21.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL