storage

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	LiteralInt    = "int"   // golang type: int
	LiteralFloat  = "float" // golang type: float64
	LiteralNumber = "number"
	LiteralBool   = "bool"   // true/True; false/False
	LiteralString = "string" //'string' or "string" or string
	LiteralNull   = "null"
)

Variables

This section is empty.

Functions

func ExpNoBracket

func ExpNoBracket(expression string) string

ExpNoBracket the expression without bracket

func LiteralExpression

func LiteralExpression(expression string) (float64, error)

LiteralExpression support mathematical expression

Types

type Any

type Any any

Any the any type of the data

type Kv

type Kv map[Any]Any

Kv the Kv style data

type Lite

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

Lite literal variable actual value

func NewLite

func NewLite(variable string) *Lite

NewLite new literal variable

func (*Lite) GetAny

func (lite *Lite) GetAny() Any

GetAny literal turn on

func (*Lite) GetType

func (lite *Lite) GetType() string

GetType get value type

func (*Lite) IsNumber

func (lite *Lite) IsNumber() bool

type Literal

type Literal string

Literal the Literal variable. this is value from string

type Storage

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

Storage the storage of cache

func GetStorage

func GetStorage(namespace string) *Storage

func NewStorage

func NewStorage(namespace string) *Storage

func (*Storage) DelKey

func (store *Storage) DelKey(key Any) bool

func (*Storage) GetValue

func (store *Storage) GetValue(key Any) Any

func (*Storage) SetValue

func (store *Storage) SetValue(key, value Any) *Storage

type Table

type Table []Any

Table the list of table

Jump to

Keyboard shortcuts

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