parser

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertStructToYAML

func ConvertStructToYAML(v interface{}) ([]byte, error)

func ConvertStuctToJSON

func ConvertStuctToJSON(v interface{}) ([]byte, error)

func ConvertTemplateIntoYAML

func ConvertTemplateIntoYAML(tmpl bytes.Buffer) (interface{}, error)

ConvertTemplateIntoYAML converts a template into a yaml file.

func YamlFileIsValid

func YamlFileIsValid(yamlFile string) error

YamlFileIsValid YamlIsValid checks if the yaml file is valid.

func YamlStructureIsValid

func YamlStructureIsValid(yamlFile string, schema interface{}) error

YamlStructureIsValid checks if the yaml file has a valid structure.

func YamlToStructFromFile

func YamlToStructFromFile(yamlFile string, schema interface{}) error

YamlToStructFromFile converts a yaml file into a struct.

func YamlToStructWithContent

func YamlToStructWithContent(yamlContent string, schema interface{}) error

YamlToStructWithContent converts a yaml file into a struct.

Types

This section is empty.

Jump to

Keyboard shortcuts

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