yaml

package
v0.51.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ModuleName    = "encoding/yaml.star"
	DefaultIndent = 2
)

Variables

This section is empty.

Functions

func Decode

func Decode(_ *starlark.Thread, _ *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

Decode reads the YAML-encoded value from its input and returns the result as a starlark.Value.

func Encode

func Encode(_ *starlark.Thread, _ *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

Encode returns the YAML encoding of its input.

func LoadModule

func LoadModule() (starlark.StringDict, error)

LoadModule loads the yaml module. It is concurrency-safe and idempotent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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