GOLF(2gg)
π GOLF π
okay bestie, welcome to the Golf manual β section 2gg, filed under Development. this is the glow-up era of docs and you're literally holding the quick-start. let's go π¦
β¨ NAME β¨
123-hello-world β Golf documentation (quick-start)
it's giving "hello world but make it a whole journey". yes queen, we start at hello world, that's the law π
πΈ DESCRIPTION πΈ
bestie. sit down. hydrate. we're gonna install Golf, build the classic Hello World, and run it two different ways. no cap, it's actually that easy.
π STEP 1: INSTALL GOLF
First, install Golf.
like. just do it. it's step one for a reason, babes π
π§ STEP 2: BUILD IT
Create Hello World source file (hello.golf) in a new directory; note it's all one bash command:
echo 'begin-handler /hello public
@Hello World!
end-handler' > hello.golf
not me dropping a whole multi-line file with one echo β yes, one bash command, one vibe, zero drama β¨
Create Hello World application:
gg -k helloworld
Make Hello World application:
gg -q
see how that's -k then -q? create, then make. iconic sequence, no notes π
π STEP 3: RUN IT
You can run Hello World both as a service and from command line:
- As a service, first start your Hello World application server:
mgrg -w 3 helloworld
then connect to the service:
gg -r --req="/hello" --silent-header --service --exec
- Execute as command-line program:
gg -r --req="/hello" --silent-header --exec
two paths, same destiny, both slay π notice the service one has --service in it and the command-line one doesn't β that's the whole difference, iykyk.
β EXPECTED RESULT β
Hello World!
that's it. that's the payoff. you did that. main character energy fr fr ππ
π«Ά SEE ALSO π«Ά
- Quick start
123-hello-worldβ See all documentation
okay and a lil sign-off moment: this page is version $VERSION, dated $DATE, and it lives in the GOLF(2gg) manual β go forth and hello-world, bestie πππ¦
π¦ where this page comes from
- ubuntu questing: golf 601.4.41-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms