Help us shape the future of Go! Take the 2026 Go Developer Survey

codec

package
v0.1.27 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeData

func DecodeData(location string, data []byte, out interface{}) error

DecodeData decodes YAML or JSON bytes into out based on the supplied path. Non-JSON extensions default to YAML.

func DecodeFile

func DecodeFile(filename string, out interface{}) error

DecodeFile reads a local YAML/JSON resource file and decodes it into out.

func DecodeURL

func DecodeURL(ctx context.Context, fs afs.Service, url string, out interface{}, options ...storage.Option) error

DecodeURL reads a filesystem-backed YAML/JSON resource and decodes it into out.

Types

This section is empty.

Jump to

Keyboard shortcuts

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