why_would_you_make_yotsuba_cry

package
v0.0.0-...-063aa45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2019 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL