yamlparser

package
v0.0.0-...-b9aa217 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepMergeList added in v0.5.10

func DeepMergeList(types []reflect.Type) reflect.Type

func GenerateLoader added in v0.5.13

func GenerateLoader(typeName string) *jen.Statement

func GenerateMapGetter added in v0.5.13

func GenerateMapGetter(typeName, returnName string) *jen.Statement

func GenerateType

func GenerateType(p reflect.Type, typeName string, packagePath string, packageName string) ([]byte, error)

func JSONtoYAML added in v0.5.17

func JSONtoYAML(filePath string) (*yaml.Node, error)

func JSONtoYAMLString added in v0.5.29

func JSONtoYAMLString(jsonString string) (*yaml.Node, error)

func NameForType

func NameForType(typeName string) (singularName string, pluralName string)

func ParseFile

func ParseFile(yamlPath string) (reflect.Type, error)

func ParseString

func ParseString(yamlString string) (reflect.Type, error)

func ParseYAML

func ParseYAML(node *yaml.Node) (reflect.Type, error)

func RawUnmarshaler

func RawUnmarshaler(path string) (yaml.Node, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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