loaders

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadJSON

func LoadJSON(sourcePath string, target interface{}) error

LoadJSON loads JSON from a file or URL into the provided target struct.

func LoadYAML

func LoadYAML(sourcePath string, target interface{}) error

LoadYAML loads YAML from a file or URL into the provided target struct.

func MarshalYAML

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

MarshalYAML marshals an object to YAML bytes.

func UnmarshalYAML

func UnmarshalYAML(data []byte, target interface{}) error

UnmarshalYAML unmarshals YAML bytes into the provided target.

Types

This section is empty.

Jump to

Keyboard shortcuts

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