object

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool struct {
	ObjectImpl
	// contains filtered or unexported fields
}

Bool implements ObjectImpl interfaces

func NewBool

func NewBool(v bool) *Bool

NewBool create new Bool object containing bool value

func (*Bool) Add

func (o *Bool) Add(rs Object) (Object, error)

Add implements summation of Bool object and other types of objects

func (*Bool) BinaryOp

func (o *Bool) BinaryOp(op int, rhs Object) (Object, error)

BinaryOp provides logic of binary operations between 2 objects

func (*Bool) Div

func (o *Bool) Div(rs Object) (Object, error)

Div implements division of Bool object and other types of objects

func (*Bool) Equal

func (o *Bool) Equal(rs Object) (Object, error)

Equal implements checking of equation between Bool object and other types of objects

func (*Bool) GetValue

func (o *Bool) GetValue() any

GetValue returns underly boolean value

func (*Bool) Gt

func (o *Bool) Gt(rs Object) (Object, error)

Gt implements 'great than' checking between Bool object and other types of objects

func (*Bool) GtEq

func (o *Bool) GtEq(rs Object) (Object, error)

GtEq implements 'great than or equal' checking between Bool object and other types of objects

func (*Bool) LogicalAnd

func (o *Bool) LogicalAnd(rs Object) (Object, error)

LogicalAnd implements logical AND between Bool object and other types of objects

func (*Bool) LogicalNot

func (o *Bool) LogicalNot() (Object, error)

LogicalNot implements logical NOT on Bool object

func (*Bool) LogicalOr

func (o *Bool) LogicalOr(rs Object) (Object, error)

LogicalOr implements logical OR between Bool object and other types of objects

func (*Bool) Lt

func (o *Bool) Lt(rs Object) (Object, error)

Lt implements 'less than' checking between Bool object and other types of objects

func (*Bool) LtEq

func (o *Bool) LtEq(rs Object) (Object, error)

LtEq implements 'less than or equal' checking between Bool object and other types of objects

func (*Bool) Mod

func (o *Bool) Mod(rs Object) (Object, error)

Mod implements obtaining of reminder of Bool object and other types of objects

func (*Bool) Mul

func (o *Bool) Mul(rs Object) (Object, error)

Mul implements multiplication of Bool object and other types of objects

func (*Bool) Negative

func (o *Bool) Negative() (Object, error)

Negative implements unary negation of Bool object

func (*Bool) NotEqual

func (o *Bool) NotEqual(rs Object) (Object, error)

NotEqual implements checking of unequation between Bool object and other types of objects

func (*Bool) Pow

func (o *Bool) Pow(rs Object) (Object, error)

Pow implements exponention of Bool object by other types of objects

func (*Bool) String

func (o *Bool) String() string

Strings returns string representation of Bool object

func (*Bool) Sub

func (o *Bool) Sub(rs Object) (Object, error)

Sub implements subtraction of Bool object and other types of objects

func (*Bool) TypeName

func (o *Bool) TypeName() string

TypeName returns name of Bool type

func (*Bool) UnaryOp

func (o *Bool) UnaryOp(op int) (Object, error)

UnaryOp provides logic of unary operations on object

func (*Bool) Value added in v1.0.2

func (o *Bool) Value() bool

Value returns exact underlay value of Golang type

func (*Bool) Xor

func (o *Bool) Xor(rs Object) (Object, error)

Xor implements XORing between Bool object and other types of objects

type Dict

type Dict struct {
	ObjectImpl
	// contains filtered or unexported fields
}

Dict implements ObjectImpl interfaces

func NewDict

func NewDict(v map[string]Object) *Dict

NewBool create new Dict object containing map of values

func (*Dict) BinaryOp

func (o *Dict) BinaryOp(op int, rhs Object) (Object, error)

BinaryOp provides logic of binary operations between 2 objects

func (*Dict) Equal

func (o *Dict) Equal(rs Object) (Object, error)

Equal implements checking of equation between Dict object and other types of objects

func (*Dict) GetValue

func (o *Dict) GetValue() any

GetValue returns underly values of Dict object

func (*Dict) IndexGet

func (o *Dict) IndexGet(rs Object) (Object, error)

IndexGet returns value from Dict by index

func (*Dict) IndexSet

func (o *Dict) IndexSet(idx Object, rs Object) error

IndexSet sets value in Dict by index

func (*Dict) LogicalAnd

func (o *Dict) LogicalAnd(rs Object) (Object, error)

LogicalAnd implements logical AND between Dict object and other types of objects

func (*Dict) LogicalNot

func (o *Dict) LogicalNot() (Object, error)

LogicalNot implements logical NOT on Dict object

func (*Dict) LogicalOr

func (o *Dict) LogicalOr(rs Object) (Object, error)

LogicalOr implements logical OR between Dict object and other types of objects

func (*Dict) MethodCall

func (o *Dict) MethodCall(name string, args ...Object) (Object, error)

MethodCall dispatch method from storage for Dict object and executes it

func (*Dict) MethodLen

func (o *Dict) MethodLen(args ...Object) (Object, error)

MethodLen returns len of Dict object via method

func (*Dict) MethodPop

func (o *Dict) MethodPop(args ...Object) (Object, error)

MethodPop remove key from Dict object via method

func (*Dict) NotEqual

func (o *Dict) NotEqual(rs Object) (Object, error)

NotEqual implements checking of unequation between Dict object and other types of objects

func (*Dict) String

func (o *Dict) String() string

Strings returns string representation of Dict object

func (*Dict) TypeName

func (o *Dict) TypeName() string

TypeName returns name of Dict type

func (*Dict) UnaryOp

func (o *Dict) UnaryOp(op int) (Object, error)

UnaryOp provides logic of unary operations on object

func (*Dict) Value added in v1.0.2

func (o *Dict) Value() map[string]Object

Value returns exact underlay value of Golang type

type Float

type Float struct {
	ObjectImpl
	// contains filtered or unexported fields
}

Float implements ObjectImpl interfaces

func NewFloat

func NewFloat(value float64) *Float

NewFloat create new Float object containing float64 value

func (*Float) Add

func (o *Float) Add(rs Object) (Object, error)

Add implements summation of Float object and other types of objects

func (*Float) BinaryOp

func (o *Float) BinaryOp(op int, rhs Object) (Object, error)

BinaryOp provides logic of binary operations between 2 objects

func (*Float) Div

func (o *Float) Div(rs Object) (Object, error)

Div implements division of Float object and other types of objects

func (*Float) Equal

func (o *Float) Equal(rs Object) (Object, error)

Equal implements checking of equation between Float object and other types of objects

func (*Float) GetValue

func (o *Float) GetValue() any

GetValue returns underly float64 value

func (*Float) Gt

func (o *Float) Gt(rs Object) (Object, error)

Gt implements 'great than' checking between Float object and other types of objects

func (*Float) GtEq

func (o *Float) GtEq(rs Object) (Object, error)

GtEq implements 'great than or equal' checking between Float object and other types of objects

func (*Float) LogicalAnd

func (o *Float) LogicalAnd(rs Object) (Object, error)

LogicalAnd implements logical AND between Float object and other types of objects

func (*Float) LogicalNot

func (o *Float) LogicalNot() (Object, error)

LogicalNot implements logical NOT on Float object

func (*Float) LogicalOr

func (o *Float) LogicalOr(rs Object) (Object, error)

LogicalOr implements logical OR between Float object and other types of objects

func (*Float) Lt

func (o *Float) Lt(rs Object) (Object, error)

Lt implements 'less than' checking between Float object and other types of objects

func (*Float) LtEq

func (o *Float) LtEq(rs Object) (Object, error)

LtEq implements 'less than or equal' checking between Float object and other types of objects

func (*Float) Mod

func (o *Float) Mod(rs Object) (Object, error)

Mod implements obtaining of reminder of Float object and other types of objects

func (*Float) Mul

func (o *Float) Mul(rs Object) (Object, error)

Mul implements multiplication of Float object and other types of objects

func (*Float) Negative

func (o *Float) Negative() (Object, error)

Negative implements unary negation of Float object

func (*Float) NotEqual

func (o *Float) NotEqual(rs Object) (Object, error)

NotEqual implements checking of unequation between Float object and other types of objects

func (*Float) Pow

func (o *Float) Pow(rs Object) (Object, error)

Pow implements exponention of Float object by other types of objects

func (*Float) String

func (o *Float) String() string

Strings returns string representation of Float object

func (*Float) Sub

func (o *Float) Sub(rs Object) (Object, error)

Sub implements subtraction of Float object and other types of objects

func (*Float) TypeName

func (o *Float) TypeName() string

TypeName returns name of Float type

func (*Float) UnaryOp

func (o *Float) UnaryOp(op int) (Object, error)

UnaryOp provides logic of unary operations on object

func (*Float) Value added in v1.0.2

func (o *Float) Value() float64

Value returns exact underlay value of Golang type

type Int

type Int struct {
	ObjectImpl
	// contains filtered or unexported fields
}

Int implements ObjectImpl interfaces

func NewInt

func NewInt(value int64) *Int

NewInt create new Int object containing int64 value

func (*Int) Add

func (o *Int) Add(rs Object) (Object, error)

Add implements summation of Int object and other types of objects

func (*Int) BinaryOp

func (o *Int) BinaryOp(op int, rhs Object) (Object, error)

BinaryOp provides logic of binary operations between 2 objects

func (*Int) Div

func (o *Int) Div(rs Object) (Object, error)

Div implements division of Int object and other types of objects

func (*Int) Equal

func (o *Int) Equal(rs Object) (Object, error)

Equal implements checking of equation between Int object and other types of objects

func (*Int) GetValue

func (o *Int) GetValue() any

GetValue returns underly int64 value

func (*Int) Gt

func (o *Int) Gt(rs Object) (Object, error)

Gt implements 'great than' checking between Int object and other types of objects

func (*Int) GtEq

func (o *Int) GtEq(rs Object) (Object, error)

GtEq implements 'great than or equal' checking between Int object and other types of objects

func (*Int) LogicalAnd

func (o *Int) LogicalAnd(rs Object) (Object, error)

LogicalAnd implements logical AND between Int object and other types of objects

func (*Int) LogicalNot

func (o *Int) LogicalNot() (Object, error)

LogicalNot implements logical NOT on Int object

func (*Int) LogicalOr

func (o *Int) LogicalOr(rs Object) (Object, error)

LogicalOr implements logical OR between Int object and other types of objects

func (*Int) Lt

func (o *Int) Lt(rs Object) (Object, error)

Lt implements 'less than' checking between Int object and other types of objects

func (*Int) LtEq

func (o *Int) LtEq(rs Object) (Object, error)

LtEq implements 'less than or equal' checking between Int object and other types of objects

func (*Int) Mod

func (o *Int) Mod(rs Object) (Object, error)

Mod implements obtaining of reminder of Int object and other types of objects

func (*Int) Mul

func (o *Int) Mul(rs Object) (Object, error)

Mul implements multiplication of Int object and other types of objects

func (*Int) Negative

func (o *Int) Negative() (Object, error)

Negative implements unary negation of Int object

func (*Int) NotEqual

func (o *Int) NotEqual(rs Object) (Object, error)

NotEqual implements checking of unequation between Int object and other types of objects

func (*Int) Pow

func (o *Int) Pow(rs Object) (Object, error)

Pow implements exponention of Int object by other types of objects

func (*Int) String

func (o *Int) String() string

Strings returns string representation of Int object

func (*Int) Sub

func (o *Int) Sub(rs Object) (Object, error)

Sub implements subtraction of Int object and other types of objects

func (*Int) TypeName

func (o *Int) TypeName() string

TypeName returns name of Int type

func (*Int) UnaryOp

func (o *Int) UnaryOp(op int) (Object, error)

UnaryOp provides logic of unary operations on object

func (*Int) Value added in v1.0.2

func (o *Int) Value() int64

Value returns exact underlay value of Golang type

func (*Int) Xor

func (o *Int) Xor(rs Object) (Object, error)

Xor implements XORing between Int object and other types of objects

type List

type List struct {
	ObjectImpl
	// contains filtered or unexported fields
}

List implements ObjectImpl interfaces

func NewList

func NewList(v []Object) *List

NewList create new List object containing list of objects

func (*List) Add

func (o *List) Add(rs Object) (Object, error)

Add implements summation of List object and other types of objects

func (*List) BinaryOp

func (o *List) BinaryOp(op int, rhs Object) (Object, error)

BinaryOp provides logic of binary operations between 2 objects

func (*List) Equal

func (o *List) Equal(rs Object) (Object, error)

Equal implements checking of equation between List object and other types of objects

func (*List) GetValue

func (o *List) GetValue() any

GetValue returns underly value as list of objects

func (*List) IndexGet

func (o *List) IndexGet(rs Object) (Object, error)

IndexGet returns value from List by index

func (*List) IndexSet

func (o *List) IndexSet(idx Object, rs Object) error

IndexSet sets value in List by index

func (*List) LogicalAnd

func (o *List) LogicalAnd(rs Object) (Object, error)

LogicalAnd implements logical AND between List object and other types of objects

func (*List) LogicalNot

func (o *List) LogicalNot() (Object, error)

LogicalNot implements logical NOT on List object

func (*List) LogicalOr

func (o *List) LogicalOr(rs Object) (Object, error)

LogicalOr implements logical OR between List object and other types of objects

func (*List) MethodAppend added in v1.0.1

func (o *List) MethodAppend(args ...Object) (Object, error)

MethodPush append objects at the end of the list

func (*List) MethodCall

func (o *List) MethodCall(name string, args ...Object) (Object, error)

MethodCall dispatch method from storage for List object and executes it

func (*List) MethodLen

func (o *List) MethodLen(args ...Object) (Object, error)

MethodLen returns len of List object via method

func (*List) MethodPop

func (o *List) MethodPop(args ...Object) (Object, error)

MethodPop remove value from List object via method

func (*List) MethodReverse

func (o *List) MethodReverse(args ...Object) (Object, error)

MethodReverse reverses list objects via method

func (*List) Mul

func (o *List) Mul(rs Object) (Object, error)

Mul implements multiplication of List object and other types of objects

func (*List) NotEqual

func (o *List) NotEqual(rs Object) (Object, error)

NotEqual implements checking of unequation between List object and other types of objects

func (*List) String

func (o *List) String() string

Strings returns string representation of List object

func (*List) TypeName

func (o *List) TypeName() string

TypeName returns name of List type

func (*List) UnaryOp

func (o *List) UnaryOp(op int) (Object, error)

UnaryOp provides logic of unary operations on object

func (*List) Value added in v1.0.2

func (o *List) Value() []Object

Value returns exact underlay value of Golang type

type NativeFunc

type NativeFunc struct {
	ObjectImpl
	// contains filtered or unexported fields
}

NativeFunc implements ObjectImpl interfaces

func NewNativeFunc

func NewNativeFunc(n string, c func(args ...Object) (Object, error)) *NativeFunc

NewNativeFunc creates new NativeFunc objects with name of function and native Golang function

func (*NativeFunc) Call

func (o *NativeFunc) Call(args ...Object) (Object, error)

Call iinvoke native function using underlied Golang realization

func (*NativeFunc) CanCall

func (o *NativeFunc) CanCall() bool

CanCall indicates if object is callable

func (*NativeFunc) String

func (o *NativeFunc) String() string

String returns string representation of native function object

func (*NativeFunc) TypeName

func (o *NativeFunc) TypeName() string

TypeName returns type name of native function and its name

type Null

type Null struct {
	ObjectImpl
}

Null implements ObjectImpl interface

func NewNull

func NewNull() *Null

NewNull creates new Null object

func (*Null) BinaryOp

func (o *Null) BinaryOp(op int, rhs Object) (Object, error)

BinaryOp provides logic of binary operations between 2 objects

func (*Null) Equal

func (o *Null) Equal(rs Object) (Object, error)

Equal implements checking of equation between Null object and other types of objects

func (*Null) LogicalAnd

func (o *Null) LogicalAnd(rs Object) (Object, error)

LogicalAnd implements logical AND between Null object and other types of objects

func (*Null) LogicalNot

func (o *Null) LogicalNot() (Object, error)

LogicalNot implements logical NOT on Null object

func (*Null) LogicalOr

func (o *Null) LogicalOr(rs Object) (Object, error)

LogicalOr implements logical OR between Null object and other types of objects

func (*Null) NotEqual

func (o *Null) NotEqual(rs Object) (Object, error)

NotEqual implements checking of unequation between Null object and other types of objects

func (*Null) String

func (o *Null) String() string

String returnes string representation of Null object

func (*Null) TypeName

func (o *Null) TypeName() string

TypeName returns type name

func (*Null) UnaryOp

func (o *Null) UnaryOp(op int) (Object, error)

UnaryOp provides logic of unary operations on object

type Object

type Object interface {
	// type name
	TypeName() string
	// string representation of object
	String() string
	BinaryOp(int, Object) (Object, error)
	UnaryOp(int) (Object, error)
	// is object callable
	CanCall() bool
	// call object with arguments
	Call(...Object) (Object, error)
	// call method of object
	MethodCall(string, ...Object) (Object, error)
	// get value
	GetValue() any
	// get value by index
	IndexGet(Object) (Object, error)
	// set value by index
	IndexSet(Object, Object) error
	// logical NOT
	LogicalNot() (Object, error)
	// logical OR
	LogicalOr(Object) (Object, error)
	// logical AND
	LogicalAnd(Object) (Object, error)
	// objects'es equality
	Equal(Object) (Object, error)
	// objects'es unequality
	NotEqual(Object) (Object, error)
	// unary negation
	Negative() (Object, error)
	// great than or equal
	GtEq(Object) (Object, error)
	// great than
	Gt(Object) (Object, error)
	// less than or equal
	LtEq(Object) (Object, error)
	// less than
	Lt(Object) (Object, error)
	// sum
	Add(Object) (Object, error)
	// subtractr
	Sub(Object) (Object, error)
	// pow
	Pow(Object) (Object, error)
	// multiplication
	Mul(Object) (Object, error)
	// division
	Div(Object) (Object, error)
	// obtain integer reminder
	Mod(Object) (Object, error)
	// xor
	Xor(Object) (Object, error)
}

type ObjectImpl

type ObjectImpl struct{}

func (*ObjectImpl) Add

func (a *ObjectImpl) Add(Object) (Object, error)

func (*ObjectImpl) BinaryOp

func (o *ObjectImpl) BinaryOp(_ int, _ Object) (Object, error)

func (*ObjectImpl) Call

func (o *ObjectImpl) Call(_ ...Object) (Object, error)

func (*ObjectImpl) CanCall

func (o *ObjectImpl) CanCall() bool

func (*ObjectImpl) Div

func (a *ObjectImpl) Div(Object) (Object, error)

func (*ObjectImpl) Equal

func (a *ObjectImpl) Equal(Object) (Object, error)

func (*ObjectImpl) GetValue

func (o *ObjectImpl) GetValue() any

func (*ObjectImpl) Gt

func (a *ObjectImpl) Gt(Object) (Object, error)

func (*ObjectImpl) GtEq

func (a *ObjectImpl) GtEq(Object) (Object, error)

func (*ObjectImpl) IndexGet

func (o *ObjectImpl) IndexGet(Object) (Object, error)

func (*ObjectImpl) IndexSet

func (o *ObjectImpl) IndexSet(Object, Object) error

func (*ObjectImpl) LogicalAnd

func (a *ObjectImpl) LogicalAnd(Object) (Object, error)

func (*ObjectImpl) LogicalNot

func (a *ObjectImpl) LogicalNot() (Object, error)

func (*ObjectImpl) LogicalOr

func (a *ObjectImpl) LogicalOr(Object) (Object, error)

func (*ObjectImpl) Lt

func (a *ObjectImpl) Lt(Object) (Object, error)

func (*ObjectImpl) LtEq

func (a *ObjectImpl) LtEq(Object) (Object, error)

func (*ObjectImpl) MethodCall

func (o *ObjectImpl) MethodCall(string, ...Object) (Object, error)

func (*ObjectImpl) Mod

func (a *ObjectImpl) Mod(Object) (Object, error)

func (*ObjectImpl) Mul

func (a *ObjectImpl) Mul(Object) (Object, error)

func (*ObjectImpl) Negative

func (a *ObjectImpl) Negative() (Object, error)

func (*ObjectImpl) NotEqual

func (a *ObjectImpl) NotEqual(Object) (Object, error)

func (*ObjectImpl) Pow

func (a *ObjectImpl) Pow(Object) (Object, error)

func (*ObjectImpl) String

func (o *ObjectImpl) String() string

func (*ObjectImpl) Sub

func (a *ObjectImpl) Sub(Object) (Object, error)

func (*ObjectImpl) TypeName

func (o *ObjectImpl) TypeName() string

func (*ObjectImpl) UnaryOp

func (o *ObjectImpl) UnaryOp(_ int) (Object, error)

func (*ObjectImpl) Xor

func (a *ObjectImpl) Xor(Object) (Object, error)

type RuntimeFunc

type RuntimeFunc struct {
	ObjectImpl
	// contains filtered or unexported fields
}

RuntimeFunc implements ObjectImpl interfaces

func NewRuntimeFunc

func NewRuntimeFunc(args []string, code []parser.IStmtContext) *RuntimeFunc

NewRuntimeFunc creates new RuntimeFunc objects using arguments (args) and runtime statements array

func (*RuntimeFunc) CanCall

func (o *RuntimeFunc) CanCall() bool

CanCall indicates if object is callable

func (*RuntimeFunc) GetArgs

func (o *RuntimeFunc) GetArgs() []string

GetArgs return list of arguments for RuntimeFunc object

func (*RuntimeFunc) GetArgsLen

func (o *RuntimeFunc) GetArgsLen() int

GetArgsLen returns length of arguments

func (*RuntimeFunc) GetCode

func (o *RuntimeFunc) GetCode() []parser.IStmtContext

GetCode returns array of runtime PLAN statements

func (*RuntimeFunc) GetName

func (o *RuntimeFunc) GetName() string

GetName returns name of runtime function

func (*RuntimeFunc) SetName

func (o *RuntimeFunc) SetName(name string)

SetName set name of RuntimeFunc object

func (*RuntimeFunc) String

func (o *RuntimeFunc) String() string

String returns string representation of runtime function object

func (*RuntimeFunc) TypeName

func (o *RuntimeFunc) TypeName() string

TypeName returns type name of runtime function and its name

type Str

type Str struct {
	ObjectImpl
	// contains filtered or unexported fields
}

Str implements ObjectImpl interface

func NewStr

func NewStr(v string) *Str

NewBool create new Str object containing string value

func (*Str) Add

func (o *Str) Add(rs Object) (Object, error)

Add implements summation of Str object and other types of objects

func (*Str) BinaryOp

func (o *Str) BinaryOp(op int, rhs Object) (Object, error)

BinaryOp provides logic of binary operations between 2 objects

func (*Str) Equal

func (o *Str) Equal(rs Object) (Object, error)

Equal implements checking of equation between Str object and other types of objects

func (*Str) GetValue

func (o *Str) GetValue() any

GetValue returns underly string value

func (*Str) Gt

func (o *Str) Gt(rs Object) (Object, error)

Gt implements 'great than' checking between Str object and other types of objects

func (*Str) GtEq

func (o *Str) GtEq(rs Object) (Object, error)

GtEq implements 'great than or equal' checking between Str object and other types of objects

func (*Str) IndexGet

func (o *Str) IndexGet(rs Object) (Object, error)

IndexGet returns value from Str by index. Operates on rune level

func (*Str) IndexSet

func (o *Str) IndexSet(idx Object, rs Object) error

IndexGet set value in Str by index. Operates on rune level

func (*Str) LogicalAnd

func (o *Str) LogicalAnd(rs Object) (Object, error)

LogicalAnd implements logical AND between Str object and other types of objects

func (*Str) LogicalNot

func (o *Str) LogicalNot() (Object, error)

LogicalNot implements logical NOT on Str object

func (*Str) LogicalOr

func (o *Str) LogicalOr(rs Object) (Object, error)

LogicalOr implements logical OR between Str object and other types of objects

func (*Str) Lt

func (o *Str) Lt(rs Object) (Object, error)

Lt implements 'less than' checking between Str object and other types of objects

func (*Str) LtEq

func (o *Str) LtEq(rs Object) (Object, error)

LtEq implements 'less than or equal' checking between Str object and other types of objects

func (*Str) MethodCall

func (o *Str) MethodCall(name string, args ...Object) (Object, error)

MethodCall dispatch method from storage for Str object and executes it

func (*Str) MethodLen

func (o *Str) MethodLen(args ...Object) (Object, error)

MethodLen returns number of runes in Str object via method

func (*Str) MethodReverse

func (o *Str) MethodReverse(args ...Object) (Object, error)

MethodReverse reverse runes in Str objects via method

func (*Str) MethodSplit

func (o *Str) MethodSplit(args ...Object) (Object, error)

MethodSplit splits Str object on list of subtrings by delimeter via method

func (*Str) Mul

func (o *Str) Mul(rs Object) (Object, error)

Mul implements multiplication of Str object and other types of objects

func (*Str) NotEqual

func (o *Str) NotEqual(rs Object) (Object, error)

NotEqual implements checking of unequation between Str object and other types of objects

func (*Str) String

func (o *Str) String() string

Strings returns string representation of Str object (itself)

func (*Str) TypeName

func (o *Str) TypeName() string

TypeName returns type name

func (*Str) UnaryOp

func (o *Str) UnaryOp(op int) (Object, error)

UnaryOp provides logic of unary operations on object

func (*Str) Value added in v1.0.2

func (o *Str) Value() string

Value returns exact underlay value of Golang type

Jump to

Keyboard shortcuts

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