123-hello-world - Golf documentation (quick-start)
Contents
Description
STEP1:INSTALLGOLF
First, installGolf.
STEP2:BUILDIT
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
STEP3:RUNIT
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
EXPECTEDRESULT
Hello World!
Name
123-hello-world - Golf documentation (quick-start)
See Also
Quick start
123-hello-world See all documentation
$DATE $VERSION GOLF(2gg)
