json

package
v0.0.0-...-37cc865 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JsonType = types.NewOpaqueType("json.Json")

Functions

func Latest

func Latest() *version.Version

func Lib

func Lib(json JsonIface, v *version.Version) cel.EnvOption

Types

type Json

type Json struct {
	JsonIface
}

type JsonIface

type JsonIface interface {
	Unmarshal([]byte) (any, error)
}

type JsonImpl

type JsonImpl struct{}

func (*JsonImpl) Unmarshal

func (j *JsonImpl) Unmarshal(content []byte) (any, error)

Jump to

Keyboard shortcuts

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