123-hello-world
Golf documentation (quick-start)
- Provided by: golf (Version: 601.4.41-1)
- Report a bug
Golf documentation (quick-start)
STEP 1: INSTALL GOLF
First, install Golf.
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
Create Hello World application:
gg -k helloworld
Make Hello World application:
gg -q
STEP 3: RUN IT
You can run Hello World both as a service and from command line:
mgrg -w 3 helloworld
then connect to the service:
gg -r --req="/hello" --silent-header --service --exec
gg -r --req="/hello" --silent-header --exec
EXPECTED RESULT
Hello World!
Quick start
123-hello-world See all documentation