unmarshalmap

package
v0.0.0-...-cf49914 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

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

Field contains the details from an struct field

func (Field) ConvertibleFromFloat64

func (f Field) ConvertibleFromFloat64() bool

func (Field) Field

func (f Field) Field() string

func (Field) IsAnonymous

func (f Field) IsAnonymous() bool

func (Field) IsArrayOrSlice

func (f Field) IsArrayOrSlice() bool

func (Field) IsExported

func (f Field) IsExported() bool

func (Field) IsPointer

func (f Field) IsPointer() bool

func (Field) IsSlice

func (f Field) IsSlice() bool

func (Field) IsStruct

func (f Field) IsStruct() bool

func (Field) Name

func (f Field) Name() string

Name returns the method name

func (Field) Type

func (f Field) Type() string

func (Field) UnderlyingConvertibleFromFloat64

func (f Field) UnderlyingConvertibleFromFloat64() bool

func (Field) UnderlyingIsBasic

func (f Field) UnderlyingIsBasic() bool

func (Field) UnderlyingIsPointer

func (f Field) UnderlyingIsPointer() bool

func (Field) UnderlyingTarget

func (f Field) UnderlyingTarget() fieldser

func (Field) UnderlyingType

func (f Field) UnderlyingType() types.Type

func (Field) UnderlyingTypeName

func (f Field) UnderlyingTypeName() string

type Generator

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

Generator will generate the UnmarshalMap function

func NewGenerator

func NewGenerator(pkg, target string) (*Generator, error)

NewGenerator initializes a Generator

func (Generator) Fields

func (g Generator) Fields() []Field

func (Generator) Imports

func (g Generator) Imports() map[string]string

func (Generator) Name

func (g Generator) Name() string

func (Generator) Package

func (g Generator) Package() string

func (*Generator) SetPackage

func (g *Generator) SetPackage(name string)

func (Generator) Write

func (g Generator) Write(wr io.Writer) error

func (Generator) WriteTest

func (g Generator) WriteTest(wr io.Writer) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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