json

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(jsonStr string) (interface{}, error)

Decode converts the given json string to a data structure @function

func Encode

func Encode(value interface{}) (string, error)

Encode converts the given value to a json string @function

Types

type DecodeInterpreter

type DecodeInterpreter struct {
}

DecodeInterpreter is the Conflow interpreter for the Decode function

func (DecodeInterpreter) Eval

func (i DecodeInterpreter) Eval(ctx interface{}, args []interface{}) (interface{}, error)

Eval returns with the result of the function

func (DecodeInterpreter) Schema

func (i DecodeInterpreter) Schema() schema.Schema

type EncodeInterpreter

type EncodeInterpreter struct {
}

EncodeInterpreter is the Conflow interpreter for the Encode function

func (EncodeInterpreter) Eval

func (i EncodeInterpreter) Eval(ctx interface{}, args []interface{}) (interface{}, error)

Eval returns with the result of the function

func (EncodeInterpreter) Schema

func (i EncodeInterpreter) Schema() schema.Schema

Jump to

Keyboard shortcuts

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