package unmarshalmap
import "github.com/ernesto-jimenez/gogen/unmarshalmap"
Index ¶
- type Field
- func (f Field) ConvertibleFromFloat64() bool
- func (f Field) Field() string
- func (f Field) IsAnonymous() bool
- func (f Field) IsArrayOrSlice() bool
- func (f Field) IsExported() bool
- func (f Field) IsPointer() bool
- func (f Field) IsSlice() bool
- func (f Field) IsStruct() bool
- func (f Field) Name() string
- func (f Field) Type() string
- func (f Field) UnderlyingConvertibleFromFloat64() bool
- func (f Field) UnderlyingIsBasic() bool
- func (f Field) UnderlyingIsPointer() bool
- func (f Field) UnderlyingTarget() fieldser
- func (f Field) UnderlyingType() types.Type
- func (f Field) UnderlyingTypeName() string
- type Generator
- func NewGenerator(pkg, target string) (*Generator, error)
- func (g Generator) Fields() []Field
- func (g Generator) Imports() map[string]string
- func (g Generator) Name() string
- func (g Generator) Package() string
- func (g *Generator) SetPackage(name string)
- func (g Generator) Write(wr io.Writer) error
- func (g Generator) WriteTest(wr io.Writer) error
Types ¶
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
Field contains the details from an struct field
func (Field) ConvertibleFromFloat64 ¶
func (Field) Field ¶
func (Field) IsAnonymous ¶
func (Field) IsArrayOrSlice ¶
func (Field) IsExported ¶
func (Field) IsPointer ¶
func (Field) IsSlice ¶
func (Field) IsStruct ¶
func (Field) Name ¶
Name returns the method name
func (Field) Type ¶
func (Field) UnderlyingConvertibleFromFloat64 ¶
func (Field) UnderlyingIsBasic ¶
func (Field) UnderlyingIsPointer ¶
func (Field) UnderlyingTarget ¶
func (f Field) UnderlyingTarget() fieldser
func (Field) UnderlyingType ¶
func (Field) UnderlyingTypeName ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator will generate the UnmarshalMap function
func NewGenerator ¶
NewGenerator initializes a Generator
func (Generator) Fields ¶
func (Generator) Imports ¶
func (Generator) Name ¶
func (Generator) Package ¶
func (*Generator) SetPackage ¶
func (Generator) Write ¶
func (Generator) WriteTest ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
unmarshalmap/testpkg | |
unmarshalmap/testunmarshalmap |
- Version
- v0.0.0-20180125220232-d7d4131e6607 (latest)
- Published
- Jan 25, 2018
- Platform
- linux/amd64
- Imports
- 12 packages
- Last checked
- 3 days ago –
Tools for package owners.