murex Shell Docs

Command Reference: method

Define a methods supported data-types

Description

method defines what the typical data type would be for a function’s STDIN and STDOUT.

Usage

method: define name { json }

Examples

method: define name {
    "Stdin":  "@Any",
    "Stdout": "json"
}

Detail

Type Groups

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,
}

See Also

This 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 Tue Sep 20 07:48:14 UTC 2022 against commit 1769d5b1769d5bb0ba4eaf204a5e0f52053b8f877bb7466.

Current version is 2.11.2030 which has been verified against 16798 tests cases.