Context
struct
#
type Context struct {
GOARCH string `json:",omitempty"`
GOOS string `json:",omitempty"`
GOROOT string `json:",omitempty"`
GOPATH string `json:",omitempty"`
CgoEnabled bool `json:",omitempty"`
UseAllFiles bool `json:",omitempty"`
Compiler string `json:",omitempty"`
BuildTags []string `json:",omitempty"`
ToolTags []string `json:",omitempty"`
ReleaseTags []string `json:",omitempty"`
InstallSuffix string `json:",omitempty"`
}
TrackingWriter
struct
#
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.
type TrackingWriter struct {
w *bufio.Writer
last byte
}