method
- Command ReferenceDefine a methods supported data-types
method
defines what the typical data type would be for a function’s STDIN and STDOUT.
method: define name { json }
method: define name {
"Stdin": "@Any",
"Stdout": "json"
}
You can define a Murex data type or use a type group. The following type groups are available to use:
package types
// These are the different supported type groups
const (
"@Any"
Any = "@Text"
Text = "@Math"
Math = "@Unmarshal"
Unmarshal = "@Marshal"
Marshal = "@ReadArray"
ReadArray = "@ReadArrayWithType"
ReadArrayWithType = "@WriteArray"
WriteArray = "@ReadIndex"
ReadIndex = "@ReadNotIndex"
ReadNotIndex = "@ReadMap"
ReadMap =
)
// GroupText is an array of the data types that make up the `text` type
var GroupText = []string{
Generic,
String,`generic`,
`string`,
}
// GroupMath is an array of the data types that make up the `math` type
var GroupMath = []string{
Number,
Integer,
Float,
Boolean, }
->
) Token: Pipes STDOUT from the left hand command to STDIN of the right hand commandalias
: Create an alias for a commandautocomplete
: Set definitions for tab-completion in the command linefunction
: Define a function blockprivate
: Define a private function blockruntime
: Returns runtime information on the internal state of MurexThis site's content is rebuilt automatically from murex's source code after each merge to the master
branch. Downloadable murex binaries are also built with the website.
Last built on Fri May 19 22:45:48 UTC 2023 against commit 54b5f6754b5f67b250bbf7353e83c42ed187802584c3ae3.
Current version is 4.1.6140 which has been verified against 14045 tests cases.