package
Version:
v3.2.0+incompatible
Opens a new window with list of versions in this module.
Published: Dec 22, 2016
License: BSD-3-Clause
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package populate provides function to populate Go values from
an untyped interface{} soup.
func Lax(dst, src interface{}) error
Lax populates dst from src. Src may contain elements which cannot
be mapped to dst in which case they are ignored silently.
func Strict(dst, src interface{}) error
Strict populates dst from src failing if elements in src cannot be mapped
to dst.
type Populator interface {
Populate(src interface{}) error
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.