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 modules, 4 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.

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
⌂ 换网址