Hello World in Goby was written by:
This article was written by:
If you see anything you'd like to change or update, please consider contributing.
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!
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:
glotter 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.