marshal

package
v6.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StarlarkMarshal

func StarlarkMarshal(input any) (starlark.Value, error)

StarlarkMarshal converts input to a starlark Value. It only includes exported struct fields, and uses the "json" tag for field names.

func StarlarkUnmarshal

func StarlarkUnmarshal(input starlark.Value) (any, error)

StarlarkUnmarshal converts a Starlark value into a Go value. Only NoneType, Bool, Int, Float, String, List and Dict are supported.

Types

This section is empty.

Jump to

Keyboard shortcuts

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