Golo supports a set of data literals. They directly map to their counterparts from the Java Standard API. We give them along with examples in the data literals table below.
| Java type | Golo literals |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Speaking of strings, Golo also supports multi-line strings using the """ delimiters, as in:
let text = """This is
a multi-line string.
How
cool
is
that?"""
println(text)This snippet would print the following to the standard console output:
This is
a multi-line string.
How
cool
is
that?