common

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cast

func Cast(val interface{}, target Type) (interface{}, error)

Types

type Type

type Type uint8
const (
	String Type = iota
	Float
	Int
	Bool
	Object
	Array
	StringArray
	Any
)

func TypeFromVal

func TypeFromVal(val interface{}) Type

func TypePtr

func TypePtr(t Type) *Type

func (Type) IsSameType

func (t Type) IsSameType(val interface{}) bool

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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