SYNOPSIS

golosh main_file arguments …​

DESCRIPTION

This script is an alias for the golo-shebang(1) command, to ease the use of env hasbanged scripts.

EXAMPLES

#!/usr/bin/env golosh
module hello

function main = |args| {
  require(args: length() > 1, "You should set at least one argument!")
  println("Hello " + args: get(1) + " from '" + args: get(0) + "'!")
}
$ chmod +x hello.golo
$ ./hello.golo World
Hello World from 'hello.golo'!
$

SEE ALSO

golo-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.