Skip to main content

Basic Types

Primitives

The following tables shows the list of supported primitive types, and corresponding example:

NameTypeDescriptionExample
StringstringGroup of text charactersABCabc
Integerint64Number1
Floatfloat64Number w/ decimals2.0
BooleanboolLogical true/falsetrue
Nullnull
Undefinedundefined

Collections of Primitives

The following tables shows the list of supported collection types, and corresponding example:

NameTypeDescriptionExample
List[]aList of primitives[]string
Mapmap[a]bMap of primitivesmap[string]int64
List (interface)[]interface{}JSON Array[]interface{}
Map (interface)map[string]interface{}JSON Objectmap[string]interface{}

Note: Lists (arrays) are zero-indexed