Define Method Relationships (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,
}

Synonyms

See Also


This document was generated from builtins/core/structs/function_doc.yaml.

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 Dec 10 22:56:57 UTC 2024 against commit 60f05a260f05a227caf73dd5b3478e3cb3f4bb24e46745b.

Current version is 6.4.1005 (develop) which has been verified against tests cases.