Skip to content
Langoost
Docs Examples Standard library FAQ
Get started →
Examples

Langoost by example

Complete, annotated programs. Each one is small enough to read in a sitting and shows a single idea clearly.

Hello, world

hello-world.goost

The smallest Langoost program — declare a variable and print a greeting with string concatenation.

basics

FizzBuzz

fizzbuzz.goost

FizzBuzz in Langoost using for..in with range and if / else if / else.

basicscontrol-flow

Prime numbers

primes.goost

Find prime numbers in Langoost — a recursive-free isPrime check, a while loop, and the immutable append pattern for building an array.

functionsarraysloops

HTTP server

http-server.goost

A small JSON HTTP server in Langoost using http.serve and a handler that routes on method and path and returns string responses with status prefixes.

httpbackend

HTTP client

http-client.goost

Make HTTP requests in Langoost — GET, POST, and a generic request with custom headers using the http module.

httpbackend

Concurrency

concurrency.goost

Background work in Langoost with the thread module — spawn a goroutine, pass messages over a channel, and await an async future.

concurrencybackend

JSON data

json-data.goost

Build and manipulate JSON in Langoost using inline json literals and the json module — get, set, merge, and pretty-print.

jsondata

Langoost — A typed scripting language for fast backends.

Open source · in active development

Docs

Overview Language tour Standard library Concurrency

Learn

Examples HTTP server FAQ

Get started

Install & run CLI reference Architecture

Machine-readable

/llms.txt /llms-full.txt sitemap.xml
© 2026 The Langoost Project. built with care · .goost · langoost