Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface {
ToGoInt() int64
ToGoFloat() float64
ToGoString() string
IsInt() bool
IsFloat() bool
IsNull() bool
Add(Interface) Result.Interface
Sub(Interface) Result.Interface
Mul(Interface) Result.Interface
Div(Interface) Result.Interface
Mod(Interface) Result.Interface
Abs() Result.Interface
Neg() Result.Interface
Equal(Interface) Boolean.Interface
LessThan(Interface) Boolean.Interface
GreaterThan(Interface) Boolean.Interface
Inspect() String
}
Number is a numeric composite over a Go int64 or float64 value.
Its fallible operations (notably Div) return a Result.Interface so that failures — such as a division by zero — are values rather than panics.
Click to show internal directories.
Click to hide internal directories.