serialized

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 1 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsKeyNotFoundError

func IsKeyNotFoundError(err error) bool

IsKeyNotFoundError ...

func IsTypeCastError

func IsTypeCastError(err error) bool

IsTypeCastError ...

Types

type KeyNotFoundError

type KeyNotFoundError struct {
	// contains filtered or unexported fields
}

KeyNotFoundError ...

func NewKeyNotFoundError

func NewKeyNotFoundError(key string, object Object) KeyNotFoundError

NewKeyNotFoundError ...

func (KeyNotFoundError) Error

func (e KeyNotFoundError) Error() string

Error ...

type Object

type Object map[string]interface{}

Object ...

func (Object) Bool added in v1.0.15

func (o Object) Bool(key string) (bool, error)

Bool ...

func (Object) Int64

func (o Object) Int64(key string) (int64, error)

Int64 returns a value with int64 type from the map

func (Object) Keys

func (o Object) Keys() []string

Keys ...

func (Object) Object

func (o Object) Object(key string) (Object, error)

Object ...

func (Object) String

func (o Object) String(key string) (string, error)

String ...

func (Object) StringSlice

func (o Object) StringSlice(key string) ([]string, error)

StringSlice ...

func (Object) Value

func (o Object) Value(key string) (interface{}, error)

Value ...

type TypeCastError

type TypeCastError struct {
	// contains filtered or unexported fields
}

TypeCastError ...

func NewTypeCastError

func NewTypeCastError(key string, value interface{}, expected interface{}) TypeCastError

NewTypeCastError ...

func (TypeCastError) Error

func (e TypeCastError) Error() string

Error ...

Jump to

Keyboard shortcuts

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