vgo: Index | Files

package list

import ""

Package list implements the “go list” command.


Package Files

context.go list.go


var CmdList = &base.Command{

    UsageLine: "go list [-f format] [-json] [-m] [list flags] [build flags] [packages]",
    Short:     "list packages or modules",
    Long:      "" /* 12292 byte string literal not displayed */,

type Context Uses

type Context struct {
    GOARCH        string   `json:",omitempty"` // target architecture
    GOOS          string   `json:",omitempty"` // target operating system
    GOROOT        string   `json:",omitempty"` // Go root
    GOPATH        string   `json:",omitempty"` // Go path
    CgoEnabled    bool     `json:",omitempty"` // whether cgo can be used
    UseAllFiles   bool     `json:",omitempty"` // use files regardless of +build lines, file names
    Compiler      string   `json:",omitempty"` // compiler to assume when computing target paths
    BuildTags     []string `json:",omitempty"` // build constraints to match in +build lines
    ReleaseTags   []string `json:",omitempty"` // releases the current release is compatible with
    InstallSuffix string   `json:",omitempty"` // suffix to use in the name of the install dir

type TrackingWriter Uses

type TrackingWriter struct {
    // contains filtered or unexported fields

TrackingWriter tracks the last byte written on every write so we can avoid printing a newline if one was already written or if there is no output at all.

func (*TrackingWriter) Flush Uses

func (t *TrackingWriter) Flush()

func (*TrackingWriter) NeedNL Uses

func (t *TrackingWriter) NeedNL() bool

func (*TrackingWriter) Write Uses

func (t *TrackingWriter) Write(p []byte) (n int, err error)

Package list imports 16 packages (graph). Updated 2019-04-08. Refresh now. Tools for package owners.