encoding

package
v0.0.0-...-f267e1b Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoder

type Encoder interface {
	Encode(value starlark.Value) (string, error)
	EncodeMany(values []starlark.Value) (string, error)
}

type JsonEncoder

type JsonEncoder struct {
	Env *eval.Env
}

func (*JsonEncoder) Encode

func (j *JsonEncoder) Encode(value starlark.Value) (string, error)

func (*JsonEncoder) EncodeMany

func (j *JsonEncoder) EncodeMany(values []starlark.Value) (string, error)

type YamlEncoder

type YamlEncoder struct {
	Env *eval.Env
}

func (*YamlEncoder) Encode

func (y *YamlEncoder) Encode(value starlark.Value) (string, error)

func (*YamlEncoder) EncodeMany

func (y *YamlEncoder) EncodeMany(values []starlark.Value) (string, error)

Jump to

Keyboard shortcuts

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