Golo - Little 2

The D-day is coming for Golo and be sure to attend Julien’s talk at Devoxx ! In the meantime, here is a new piece of Golo. module little.experiment2_1 import java.lang function functionWithCase = |inputParameter| { case { when inputParameter == "This value" { println("this value spotted") } otherwise { println("otherwise was the answer") } } } function main = |args| { functionWithCase("This value") functionWithCase("not something to handle") } This illustrate the...

2 minute(s) read

Golo - Little 1

I think it’s time to start some Golo experiment. Of course, everyone wanted the mandatory HelloWorld. But hey, that’s a blog called “Little Experiment” ;) (at least it was at the writing time in) Ok, ok, the HelloWorld is available at Golo website, and as a present to my fellow readers, here is a copy here ;) module hello.World function main = |args| { println("Hello world!") } Save this to a helloworld.golo file...

1 minute(s) read