options

package module
v0.0.0-...-998cb87 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: MIT Imports: 4 Imported by: 0

README

options

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Expectation

type Expectation struct {
	Field    string
	Type     reflect.Type
	Def      interface{}
	Optional bool
}

type Expectations

type Expectations struct {
	// contains filtered or unexported fields
}

func New

func New() *Expectations

func (*Expectations) Expect

func (this *Expectations) Expect(field string, t reflect.Type, def interface{}, optional bool) *Expectations

func (Expectations) Parse

func (this Expectations) Parse(target interface{}, opt Options) error

type Options

type Options map[string]interface{}

Jump to

Keyboard shortcuts

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