Documentation ¶
Overview ¶
Package builtins contains rq-specific builtins.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Args = []string{}
Args is exposed to the script via the rq.args() builtin.
View Source
var ScriptPath = ""
ScriptPath is exposed to the script via the rq.scriptpath() builtin.
Functions ¶
func InterfaceToSpec ¶
InterfaceToSpec converts an arbitrary interface to a DataSpec. If it encodes a map[string]interface{}, then this is parsed out into a DataSpec as if it was JSON. If it encodes any other type, is is parsed as a DataSpec string.
Types ¶
type ErrorFromBuiltin ¶ added in v0.0.8
type ErrorFromBuiltin struct {
// contains filtered or unexported fields
}
ErrorFromBuiltin represents errors raised by the rq.error() builtin, which are treated specially for output formatting purposes elsewhere.
func (ErrorFromBuiltin) Error ¶ added in v0.0.8
func (e ErrorFromBuiltin) Error() string
Click to show internal directories.
Click to hide internal directories.