package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Aug 2, 2016
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package geterrors is used build a list of missing values to reduce error checking.
type ErrGetter struct {
}
WrapFunc takes a function for getting values.
Returns an ErrGetter.
Err takes a message.
Returns an error string prepended with a message and a list of the missing keys.
Get takes a key value and uses the function from the WrapFunc method.
If the key is missing it makes a slice of missing keys.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.