A Collection of Code Snippets in as Many Programming Languages as Possible
This project is maintained by TheRenegadeCoder
Welcome to the Hello World in Goby page! Here, you'll find the source code for this program as well as a description of how the program works.
puts("Hello, World!")
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!"
Naturally, 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.