Golo source code need to be placed in modules. Module names are separated with dots, as in:
Foo foo.Bar foo.bar.Baz (...)
It is suggested yet not enforced that the first elements in a module name are in lowercase, and that the last one have an uppercase first letter.
A Golo module can be executable if it has a function named main and
that takes an argument for the JVM program arguments:
module hello.World
function main = |args| {
println("Hello world!")
}println is a predefined function that outputs a value to the standard
console. As you can easily guess, here we output Hello, world! and
that is an awesome achievement.
Newlines are important in Golo, so make sure that your editor ends files with a newline.
Golo identifiers can be non-ascii characters (e.g., Japanese, Emoji, Arabic, etc).