Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoHclTag = errors.New("no hcl tag")
Functions ¶
This section is empty.
Types ¶
type ElementType ¶
type ElementType string
const ( ElementTypeAttribute ElementType = "attr" ElementTypeBlock ElementType = "block" ElementTypeLabel ElementType = "label" ElementTypeRemain ElementType = "remain" )
type FieldMeta ¶
type FieldMeta struct { Name string Type ElementType Optional bool Ignore bool }
func ExtractFieldMeta ¶
func ExtractFieldMeta(t reflect.StructField, readTagName, writeTagName string) (FieldMeta, error)
Click to show internal directories.
Click to hide internal directories.