package modinfo

import "cmd/go/internal/modinfo"

Index

Types

type ModuleError

type ModuleError struct {
	Err string // error text
}

type ModulePublic

type ModulePublic struct {
	Path     string        `json:",omitempty"` // module path
	Version  string        `json:",omitempty"` // module version
	Versions []string      `json:",omitempty"` // available module versions
	Replace  *ModulePublic `json:",omitempty"` // replaced by this module
	Time     *time.Time    `json:",omitempty"` // time version was created
	Update   *ModulePublic `json:",omitempty"` // available update (with -u)
	Main     bool          `json:",omitempty"` // is this the main module?
	Indirect bool          `json:",omitempty"` // module is only indirectly needed by main module
	Dir      string        `json:",omitempty"` // directory holding local copy of files, if any
	Error    *ModuleError  `json:",omitempty"` // error loading module
}

func (*ModulePublic) String

func (m *ModulePublic) String() string

Source Files

info.go

Version
v1.11.0-beta.2
Published
Jul 19, 2018
Platform
linux/amd64
Imports
1 packages
Last checked
3 seconds ago

Tools for package owners.