Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // AgentBuildContext holds info about the environment in which the margo agent was built. // It's a drop-in replacement for build.Default which is set to the user's own GOPATH, etc. AgentBuildContext = func() *build.Context { bctx := build.Default if gp := os.Getenv("MARGO_AGENT_GOPATH"); gp != "" { bctx.GOPATH = gp } return &bctx }() // AgentBuildEnv holds environment variables used when building the margo agent. // It contains environment variables like GOPATH and GO111MODULE which may be // different from the user's environment but essential for building the agent. AgentBuildEnv = map[string]string{ "GOPATH": AgentBuildContext.GOPATH, "GO111MODULE": os.Getenv("MARGO_AGENT_GO111MODULE"), } )
Functions ¶
func IsNil ¶
func IsNil(v interface{}) bool
IsNil *probably* takes care of this BS: https://golang.org/doc/faq#nil_error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.