Hello World in Goby

Published on (Updated: 02 May 2020)

Hello World in Goby

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:

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:

>puts("Hello, World!")

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][2]. 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][1], 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.