Tapestry
Source Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Prim

Common type definitions.

Definitions:

Numeric Types:

  • Num: An integer or floating point value.

String Types:

  • Bool: A true or false value.
  • Lines: A sequence of characters of any length spanning multiple lines.
  • Text: A sequence of characters of any length, all on one line.

Numeric Types

Num

An integer or floating point value.

String Types

Bool

A true or false value. Even though the definition here uses a string, the tell loading code ( and the go generated code ) have shortcuts which understand how to handle unquoted ( literal ) values. The options are:

  • "false"
  • "true"

Lines

A sequence of characters of any length spanning multiple lines. See also: text.

Text

A sequence of characters of any length, all on one line. See also: lines.