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: 11 modules, 12 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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