SYNOPSIS

golo golo [--classpath path] [--module module name] --files files …​ --args argument …​

DESCRIPTION

golo golo takes several Golo source files (*.golo and directories) as input. It expects the last one of them to have a main function to call (or use --module to define the golo module with the main function). The Golo code is compiled on the fly and executed straight into a JVM.

You may also pass arguments to the main function by appending --args on the command line invocation.

OPTIONS

--args argument …​

Program arguments.

--classpath path

a list of classpath elements (.jar and directories).

--files file …​

Golo source files (*.golo and directories). The last one must have a main function, or --module must be used to specify which module to run.

--module module name

The Golo module containing the main function to run.

EXAMPLES

Suppose that we have a module EchoArgs as follows:

module EchoArgs

function main = |args| {
  foreach arg in args {
    println("->  " + arg)
  }
}

We may invoke it as follows:

$ golo golo --files samples/echo-args.golo --args plop da plop
-> plop
-> da
-> plop
$

SEE ALSO

golo(1), golo-shebang(1)

BUGS

AUTHOR

See https://github.com/eclipse/golo-lang/graphs/contributors or the CONTRIBUTORS file in the golo source distribution.

This work is made available under the terms of the Eclipse Public License 2.0. See http://www.eclipse.org/legal/epl-2.0 or the LICENCE file in the golo source distribution.