Hello World in GobyPublished on 30 March 2019 (Updated: 30 March 2019)
In this article, we’re tackling Hello World in Goby, a Ruby-like language written in Go.
How to Implement the Solution
As seen many times in this collection, Hello World in Goby is actually really simple. In total, it’s one line of code which looks a lot like Ruby:
Alternatively, we can leave out the parentheses:
puts "Hello, World!"
puts writes the “Hello, World!” string to the user, and that’s it!
How to Run Solution
To run this solution, we can take advantage of the samplerunner script included in the Sample Programs repo. If our system is setup correctly, the following command should get the job done:
./samplerunner.sh run -s hello-world.gb
Alternatively, we may want to get a copy of the Goby interpreter. According to the documentation, there are a few ways to do that, but we won’t dig into that now.
Unlike many other languages in this collection, Goby does not have an online interpreter at this time.