gotype

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2017 License: Apache-2.0 Imports: 11 Imported by: 65

Documentation

Overview

This file has been generated from 'fold_map_inline.yml', do not edit

This file has been generated from 'fold_refl_sel.yml', do not edit

This file has been generated from 'stacks.yml', do not edit

This file has been generated from 'unfold_arr.yml', do not edit

This file has been generated from 'unfold_err.yml', do not edit

This file has been generated from 'unfold_ignore.yml', do not edit

This file has been generated from 'unfold_lookup_go.yml', do not edit

This file has been generated from 'unfold_map.yml', do not edit

This file has been generated from 'unfold_primitive.yml', do not edit

This file has been generated from 'unfold_refl.yml', do not edit

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fold

func Fold(v interface{}, vs structform.Visitor, opts ...Option) error

Types

type Folder

type Folder interface {
	Fold(structform.ExtVisitor) error
}

type Iterator

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

func NewIterator

func NewIterator(vs structform.Visitor, opts ...Option) (*Iterator, error)

func (*Iterator) Fold

func (i *Iterator) Fold(v interface{}) error

type Option

type Option func(*initOptions) error

func Folders

func Folders(in ...interface{}) Option

type Unfolder

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

func NewUnfolder

func NewUnfolder(to interface{}) (*Unfolder, error)

func (*Unfolder) EnableKeyCache

func (u *Unfolder) EnableKeyCache(max int)

func (*Unfolder) OnArrayFinished

func (u *Unfolder) OnArrayFinished() error

func (*Unfolder) OnArrayStart

func (u *Unfolder) OnArrayStart(len int, baseType structform.BaseType) error

func (*Unfolder) OnBool

func (u *Unfolder) OnBool(b bool) error

func (*Unfolder) OnByte

func (u *Unfolder) OnByte(b byte) error

func (*Unfolder) OnFloat32

func (u *Unfolder) OnFloat32(f float32) error

func (*Unfolder) OnFloat64

func (u *Unfolder) OnFloat64(f float64) error

func (*Unfolder) OnInt

func (u *Unfolder) OnInt(i int) error

func (*Unfolder) OnInt16

func (u *Unfolder) OnInt16(i int16) error

func (*Unfolder) OnInt32

func (u *Unfolder) OnInt32(i int32) error

func (*Unfolder) OnInt64

func (u *Unfolder) OnInt64(i int64) error

func (*Unfolder) OnInt8

func (u *Unfolder) OnInt8(i int8) error

func (*Unfolder) OnKey

func (u *Unfolder) OnKey(s string) error

func (*Unfolder) OnKeyRef

func (u *Unfolder) OnKeyRef(s []byte) error

func (*Unfolder) OnNil

func (u *Unfolder) OnNil() error

func (*Unfolder) OnObjectFinished

func (u *Unfolder) OnObjectFinished() error

func (*Unfolder) OnObjectStart

func (u *Unfolder) OnObjectStart(len int, baseType structform.BaseType) error

func (*Unfolder) OnString

func (u *Unfolder) OnString(s string) error

func (*Unfolder) OnStringRef

func (u *Unfolder) OnStringRef(s []byte) error

func (*Unfolder) OnUint

func (u *Unfolder) OnUint(v uint) error

func (*Unfolder) OnUint16

func (u *Unfolder) OnUint16(v uint16) error

func (*Unfolder) OnUint32

func (u *Unfolder) OnUint32(v uint32) error

func (*Unfolder) OnUint64

func (u *Unfolder) OnUint64(v uint64) error

func (*Unfolder) OnUint8

func (u *Unfolder) OnUint8(v uint8) error

func (*Unfolder) SetTarget

func (u *Unfolder) SetTarget(to interface{}) error

Jump to

Keyboard shortcuts

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