viron

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

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

Go to latest
Published: Sep 22, 2015 License: MIT Imports: 5 Imported by: 10

Documentation

Index

Constants

View Source
const (
	RequiredFieldErrorFormat = "%s is a required environment variable"
)

Variables

This section is empty.

Functions

func Parse

func Parse(env interface{}) error

func Print

func Print(env interface{}, l logger)

Types

type InvalidArgumentError

type InvalidArgumentError struct {
	Value interface{}
}

func NewInvalidArgumentError

func NewInvalidArgumentError(value interface{}) InvalidArgumentError

func (InvalidArgumentError) Error

func (err InvalidArgumentError) Error() string

type ParseError

type ParseError struct {
	Name  string
	Value string
	Kind  string
}

func NewParseError

func NewParseError(name, value, kind string) ParseError

func (ParseError) Error

func (err ParseError) Error() string

type RequiredFieldError

type RequiredFieldError struct {
	Name string
}

func NewRequiredFieldError

func NewRequiredFieldError(name string) RequiredFieldError

func (RequiredFieldError) Error

func (err RequiredFieldError) Error() string

Jump to

Keyboard shortcuts

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