exenv

package module
v0.0.0-...-8607965 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: MIT Imports: 6 Imported by: 0

README

Expansible Environment Variables

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFound

func IsNotFound(err error) (bool, string)

IsNotFound checks an error is NotFoundError. If it was, returns true and key.

func Lookup

func Lookup(key string) (string, error)

Lookup lookups a value of an environment variable and expand the value by its contents and external providers. Currently support two expansions: "consul:some_key" and "raw:raw_text".

Types

type NotFoundError

type NotFoundError struct {
	Key string
}

NotFoundError represents that key wan't found.

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

Jump to

Keyboard shortcuts

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