Documentation
¶
Index ¶
- type Executor
- type LogLevel
- type Value
- func Exit(executor Executor, args ...Value) (Value, error)
- func GetCurrentDay(executor Executor) (Value, error)
- func GetCurrentHour(executor Executor) (Value, error)
- func GetCurrentMinute(executor Executor) (Value, error)
- func GetCurrentMonth(executor Executor) (Value, error)
- func GetCurrentSecond(executor Executor) (Value, error)
- func GetCurrentYear(executor Executor) (Value, error)
- func GetTemperature(executor Executor) (Value, error)
- func GetUser(executor Executor) (Value, error)
- func GetWeather(executor Executor) (Value, error)
- func Log(executor Executor, args ...Value) (Value, error)
- func Notify(executor Executor, args ...Value) (Value, error)
- func Play(executor Executor, args ...Value) (Value, error)
- func Print(executor Executor, args ...Value) (Value, error)
- func Sleep(_ Executor, args ...Value) (Value, error)
- func Switch(executor Executor, args ...Value) (Value, error)
- func SwitchOn(executor Executor, args ...Value) (Value, error)
- type ValueBoolean
- type ValueFunction
- type ValueNumber
- func (self ValueNumber) IsEqual(_ Executor, other Value) (bool, error)
- func (self ValueNumber) IsGreaterThan(executor Executor, other Value) (bool, error)
- func (self ValueNumber) IsGreaterThanOrEqual(executor Executor, other Value) (bool, error)
- func (self ValueNumber) IsLessThan(executor Executor, other Value) (bool, error)
- func (self ValueNumber) IsLessThanOrEqual(executor Executor, other Value) (bool, error)
- func (self ValueNumber) IsTrue(_ Executor) (bool, error)
- func (self ValueNumber) ToString(_ Executor) (string, error)
- func (self ValueNumber) Type() ValueType
- func (self ValueNumber) TypeName() string
- type ValueRelational
- type ValueString
- type ValueType
- type ValueVariable
- func (self ValueVariable) IsEqual(executor Executor, other Value) (bool, error)
- func (self ValueVariable) IsGreaterThan(executor Executor, other Value) (bool, error)
- func (self ValueVariable) IsGreaterThanOrEqual(executor Executor, other Value) (bool, error)
- func (self ValueVariable) IsLessThan(executor Executor, other Value) (bool, error)
- func (self ValueVariable) IsLessThanOrEqual(executor Executor, other Value) (bool, error)
- func (self ValueVariable) IsTrue(executor Executor) (bool, error)
- func (self ValueVariable) ToString(executor Executor) (string, error)
- func (self ValueVariable) Type() ValueType
- func (self ValueVariable) TypeName() string
- type ValueVoid
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor interface {
Exit(code int)
Print(args ...string)
SwitchOn(name string) (bool, error)
Switch(name string, on bool) error
Play(server string, mode string) error
Notify(title string, description string, level LogLevel) error
Log(title string, description string, level LogLevel) error
// Builtin variables
GetUser() string
GetWeather() (string, error)
GetTemperature() (int, error)
GetDate() (int, int, int, int, int, int)
}
type Value ¶
type Value interface {
Type() ValueType
TypeName() string
ToString(executor Executor) (string, error)
IsTrue(executor Executor) (bool, error)
IsEqual(executor Executor, other Value) (bool, error)
}
func GetCurrentDay ¶
func GetCurrentHour ¶
func GetCurrentMinute ¶
func GetCurrentMonth ¶
func GetCurrentSecond ¶
func GetCurrentYear ¶
func GetTemperature ¶
func GetWeather ¶
type ValueBoolean ¶
type ValueBoolean struct{ Value bool }
func (ValueBoolean) IsEqual ¶
func (self ValueBoolean) IsEqual(_ Executor, other Value) (bool, error)
func (ValueBoolean) Type ¶
func (self ValueBoolean) Type() ValueType
func (ValueBoolean) TypeName ¶
func (self ValueBoolean) TypeName() string
type ValueFunction ¶
func (ValueFunction) IsEqual ¶
func (self ValueFunction) IsEqual(_ Executor, other Value) (bool, error)
func (ValueFunction) Type ¶
func (self ValueFunction) Type() ValueType
func (ValueFunction) TypeName ¶
func (self ValueFunction) TypeName() string
type ValueNumber ¶
type ValueNumber struct{ Value int }
func (ValueNumber) IsGreaterThan ¶
func (self ValueNumber) IsGreaterThan(executor Executor, other Value) (bool, error)
func (ValueNumber) IsGreaterThanOrEqual ¶
func (self ValueNumber) IsGreaterThanOrEqual(executor Executor, other Value) (bool, error)
func (ValueNumber) IsLessThan ¶
func (self ValueNumber) IsLessThan(executor Executor, other Value) (bool, error)
func (ValueNumber) IsLessThanOrEqual ¶
func (self ValueNumber) IsLessThanOrEqual(executor Executor, other Value) (bool, error)
func (ValueNumber) Type ¶
func (self ValueNumber) Type() ValueType
func (ValueNumber) TypeName ¶
func (self ValueNumber) TypeName() string
type ValueRelational ¶
type ValueString ¶
type ValueString struct{ Value string }
func (ValueString) Type ¶
func (self ValueString) Type() ValueType
func (ValueString) TypeName ¶
func (self ValueString) TypeName() string
type ValueVariable ¶
func (ValueVariable) IsEqual ¶
func (self ValueVariable) IsEqual(executor Executor, other Value) (bool, error)
func (ValueVariable) IsGreaterThan ¶
func (self ValueVariable) IsGreaterThan(executor Executor, other Value) (bool, error)
func (ValueVariable) IsGreaterThanOrEqual ¶
func (self ValueVariable) IsGreaterThanOrEqual(executor Executor, other Value) (bool, error)
func (ValueVariable) IsLessThan ¶
func (self ValueVariable) IsLessThan(executor Executor, other Value) (bool, error)
func (ValueVariable) IsLessThanOrEqual ¶
func (self ValueVariable) IsLessThanOrEqual(executor Executor, other Value) (bool, error)
func (ValueVariable) ToString ¶
func (self ValueVariable) ToString(executor Executor) (string, error)
func (ValueVariable) Type ¶
func (self ValueVariable) Type() ValueType
func (ValueVariable) TypeName ¶
func (self ValueVariable) TypeName() string
Click to show internal directories.
Click to hide internal directories.