env

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvKey   = "env"
	EnvOrKey = "envOr"
)

Keys to be used in templates for the functions in this package.

Variables

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

func New

func New() hctx.Map

New returns a map of the helpers within this package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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