structs

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: MIT Imports: 9 Imported by: 4

README

Structs

GoDoc Sourcegraph Go Report Card

Usage

type Option
type Option interface {
	// contains filtered or unexported methods
}

Option controls the operation of a Decode.

type Result
type Result struct {
	Error   error
	Used    map[string]struct{}
	Missing map[string]struct{}
	Broken  map[string]struct{}
}

Result contains information about the result of a Decode.

func Decode
func Decode(input map[string]interface{}, output interface{}, opts ...Option) Result

Decode takes values out of input and stores them into output, allocating as necessary.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecodeOption added in v1.0.2

type DecodeOption interface {
	// contains filtered or unexported methods
}

DecodeOption controls the operation of a Decode.

type Result

type Result struct {
	Error   error
	Used    map[string]struct{}
	Missing map[string]struct{}
	Broken  map[string]struct{}
}

Result contains information about the result of a Decode.

func Decode

func Decode(input map[string]interface{}, output interface{}, opts ...DecodeOption) Result

Decode takes values out of input and stores them into output, allocating as necessary.

Jump to

Keyboard shortcuts

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