Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvKey = "env" EnvOrKey = "envOr" )
Keys to be used in templates for the functions in this package.
Variables ¶
View Source
var Env = envy.MustGet
Env will return the specified environment variable, or an error if it can not be found
<%= env("GOPATH") %>
View Source
var EnvOr = envy.Get
Env will return the specified environment variable, or the second argument, if not found
<%= envOr("GOPATH", "~/go) %>
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.