value

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Discard = nullOut(0)

Variables

This section is empty.

Functions

func Interface

func Interface(value *pb.Value) (interface{}, error)

func Marshal

func Marshal(value Value) (*pb.Value, error)

func Unmarshal

func Unmarshal(value *pb.Value, out ValueOut) error

Types

type Bool

type Bool bool

func (Bool) Type

func (v Bool) Type() string

type Float64

type Float64 float64

func (Float64) Type

func (v Float64) Type() string

type Int64

type Int64 int64

func (Int64) Type

func (v Int64) Type() string

type JSON

type JSON struct {
	Class string
	Value interface{}
}

func (JSON) Type

func (v JSON) Type() string

type List

type List []interface{}

func (List) Type

func (v List) Type() string

type Map

type Map map[string]interface{}

func (Map) Type

func (v Map) Type() string

type String

type String string

func (String) Type

func (v String) Type() string

type Time

type Time struct {
	time.Time
}

func (Time) Type

func (v Time) Type() string

type Value

type Value interface {
	Type() string
	// contains filtered or unexported methods
}

type ValueOut

type ValueOut interface {
	Value
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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