Go: cmd/go/internal/modinfo Index | Files

package modinfo

import "cmd/go/internal/modinfo"

Index

Package Files

info.go

type ModuleError Uses

type ModuleError struct {
    Err string // error text
}

type ModulePublic Uses

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
    GoMod     string        `json:",omitempty"` // path to go.mod file describing module, if any
    Error     *ModuleError  `json:",omitempty"` // error loading module
    GoVersion string        `json:",omitempty"` // go version used in module
}

func (*ModulePublic) String Uses

func (m *ModulePublic) String() string

Package modinfo imports 1 packages (graph) and is imported by 8 packages. Updated 2019-05-08. Refresh now. Tools for package owners.