GorGorv1.0

Hello World

Write your first Gor program.

Create a file called hello.gor:

hello.gor
print("Hello, World!")

Run it:

./bin/gor hello.gor

Or try it directly in the Playground.

A Bigger Example

example.gor
# Variables
let name = "Gor"
const version = 1
 
print("Welcome to " + name)
 
# Functions
fn add(a, b) {
    return a + b
}
 
print(add(40, 2))

On this page