GOLF(2gg)

πŸ“¦ version 601.4.41, in ubuntu questing

πŸ’– 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