Versions in this module Expand all Collapse all v0 v0.12.2 Apr 12, 2017 Changes in this version + var DefaultRandSource = NewRandSource() + func Bind(rt *goja.Runtime, v interface{}, ctxPtr *context.Context) map[string]interface + func BindToGlobal(rt *goja.Runtime, data map[string]interface{}) func() + func FieldName(t reflect.Type, f reflect.StructField) string + func GetRuntime(ctx context.Context) *goja.Runtime + func MethodName(t reflect.Type, m reflect.Method) string + func MustCompile(filename, src string, strict bool) *goja.Program + func NewRandSource() goja.RandSource + func RunString(rt *goja.Runtime, src string) (goja.Value, error) + func Throw(rt *goja.Runtime, err error) + func WithRuntime(ctx context.Context, rt *goja.Runtime) context.Context + func WithState(ctx context.Context, state *State) context.Context + type FieldNameMapper struct + func (FieldNameMapper) FieldName(t reflect.Type, f reflect.StructField) string + func (FieldNameMapper) MethodName(t reflect.Type, m reflect.Method) string + type State struct + Group *lib.Group + Samples []stats.Sample + func GetState(ctx context.Context) *State