hcl

package
v0.0.0-...-da17cbf Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 4 Imported by: 0

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)

Jump to

Keyboard shortcuts

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