Documentation ¶
Index ¶
- Constants
- func Bag(scope common.Scope, args ...interface{}) interface{}
- func Choice(scope common.Scope, args ...interface{}) interface{}
- func Chr(scope common.Scope, args ...interface{}) interface{}
- func Dec(scope common.Scope, args ...interface{}) interface{}
- func Global(scope common.Scope, args ...interface{}) interface{}
- func Inc(scope common.Scope, args ...interface{}) interface{}
- func Len(scope common.Scope, args ...interface{}) interface{}
- func Let(scope common.Scope, args ...interface{}) interface{}
- func Letr(scope common.Scope, args ...interface{}) interface{}
- func Multf(scope common.Scope, args ...interface{}) interface{}
- func Range(scope common.Scope, args ...interface{}) interface{}
- func Rangef(scope common.Scope, args ...interface{}) interface{}
- func Ranget(scope common.Scope, args ...interface{}) interface{}
- func Sprintf(scope common.Scope, args ...interface{}) interface{}
- func UnixNano(scope common.Scope, args ...interface{}) interface{}
- func Uuid(scope common.Scope, args ...interface{}) interface{}
- func Weigh(scope common.Scope, args ...interface{}) interface{}
- type UUID
Constants ¶
const DefaultRestrain = 0.0
Variables ¶
This section is empty.
Functions ¶
func Dec ¶
Dec will decrement a variable. args[0] - variable name args[1] - quantum of value to decrement if variable name is present in local scope it will be used, otherwise variable name from global scope is used.
func Global ¶
Global will define a set of one or more variables in global scope. args[0], args[2] ... args[N-1] - variable name args[1], args[3] ... args[N] - variable value
func Inc ¶
Inc will increment a variable. args[0] - variable name args[1] - quantum of value to increment if variable name is present in local scope it will be used, otherwise variable name from global scope is used.
func Let ¶
Let will define a set of one or more variables in local scope. args[0], args[2] ... args[N-1] - variable name args[1], args[3] ... args[N] - variable value
func Letr ¶
Letr will define a single variables in local scope and return the same. args[0], args[2] ... args[N-1] - variable name args[1], args[3] ... args[N] - variable value
func Range ¶
Range will randomly pick a value from args[0] to args[1] and return the same. args... are expected to be in int64
func Rangef ¶
Rangef will randomly pick a value from args[0] to args[1] and return the same. args... are expected to be in float64
func Ranget ¶
Ranget will randomly pick a value from args[0] to args[1] and return the same. args... are expected to be in time.RFC3339 format