Hello World in Goby

Published on 20 April 2018 (Updated: 15 May 2023)

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.

Current Solution

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.

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!"

Naturally, puts writes the "Hello, World!" string to the user, and that's it!

How to Run the 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:

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.