typed

package
v0.0.0-...-de1fd8b Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(typ Type, b []byte) (any, error)

func Encode

func Encode(typ Type, val any) ([]byte, error)

func IsValid

func IsValid(typ Type) bool

Types

type Type

type Type = string

Type holds the type of feature.

const (
	TypeFloat64     Type = "float64"
	TypeInt64       Type = "int64"
	TypeBoolean     Type = "boolean"
	TypeString      Type = "string"
	TypeComplexJSON Type = "complex_json"
)

Jump to

Keyboard shortcuts

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