A

and()

πŸ”— Language Spec | Howto Guide

B

bool

πŸ”— Language Spec

  • A primitive type representing the set of Boolean truth values denoted by the keywords true and false

Built-in functions

πŸ”— Language Spec

bytes

πŸ”— Language Spec | Tour

  • A primitive type representing a possibly empty sequence of arbitrary bytes
C

close()

πŸ”— Language Spec | Howto Guide

  • A built-in function that converts a partially defined (β€œopen”) struct to a fully defined (β€œclosed”) struct
D

Default value

πŸ”— Tour | Howto Guide

  • The single element of a disjunction that CUE assigns to a field if and only if unification fails to resolve a concrete value for the field
  • An element of a disjunction prefixed with an asterisk (*)

Disjunction

πŸ”— Tour #1 | Tour #2

div()

πŸ”— Language Spec | Howto Guide

  • A built-in function that performs Euclidean division with its parameters and returns the integer quotient
F

Field

πŸ”— Tour

  • A key-value pair inside a map, associating a value with a given set of keys

Field constraint

πŸ”— Language Spec | Tour

float

πŸ”— Language Spec | Tour

  • A primitive type representing the set of all decimal floating-point numbers
I

int

πŸ”— Language Spec | Tour

  • A primitive type representing the set of all integer numbers
J

JSON

πŸ”— json.org

  • β€œA lightweight data-interchange format … easy for humans to read and write [and] easy for machines to parse and generate.” – json.org
  • A data format understood by the cue CLI, which can both parse and emit JSON as input and output
L

len()

πŸ”— Language Spec | Howto Guide

List

πŸ”— Language Spec | Tour

  • An arbitrary sequence of CUE values, enclosed in square brackets ([ ]) with values separated by commas (,)
M

mod()

πŸ”— Language Spec | Howto Guide

  • A built-in function that performs Euclidean division with its parameters and returns the integer remainder
N

null

πŸ”— Language Spec

  • A primitive type whose only value, the null value, is represented with the keyword null. Comparable with itself and any other type, the comparison with a null value always being equal and the comparison with any other type always being unequal

number

πŸ”— Language Spec | Tour

  • A generic primitive type representing the set of all members of both int and float types
O

Optional field constraint

πŸ”— Tour | Howto Guide

  • A field constraint that restricts the field’s value if the field is present, whilst also permitting the field’s absence

or()

πŸ”— Language Spec | Howto Guide

Q

quo()

πŸ”— Language Spec | Howto Guide

  • A built-in function that performs truncated division with its parameters and returns the integer quotient
R

β€œRaw” strings

πŸ”— Language Spec | Tour

  • A string literal enclosed with an equal number of hashes on both sides, allowing escape sequences to appear inside the text verbatim, without their usual escaping taking effect

rem()

πŸ”— Language Spec | Howto Guide

  • A built-in function that performs truncated division with its parameters and returns the integer remainder

Required field constraint

πŸ”— Tour | Howto Guide

S

string

πŸ”— Language Spec | Tour

  • A primitive type representing the set of UTF-8 strings
  • see also: Raw strings

Struct

πŸ”— Language Spec | Tour

  • A composite type representing a set of elements (called fields) each of which has a name (called a label) and a value
T

Type

πŸ”— Tour

U

Unification

πŸ”— Language Spec

Y

YAML

πŸ”— yaml.org

  • β€œYAML is a human-friendly data serialization language for all programming languages” – yaml.org
  • A data format understood by the cue CLI, which can both parse and emit YAML as input and output
CUE v0.12 is now available – learn more about its new features and improvements
Install CUE