Hello World
Write your first Gor program.
Create a file called hello.gor:
print("Hello, World!")Run it:
./bin/gor hello.gorOr try it directly in the Playground.
A Bigger Example
# Variables
let name = "Gor"
const version = 1
print("Welcome to " + name)
# Functions
fn add(a, b) {
return a + b
}
print(add(40, 2))