Scroll to navigation

GOLF(2gg) Development GOLF(2gg)

NAME

123-hello-world - Golf documentation (quick-start)

DESCRIPTION

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:

• 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

EXPECTED RESULT

Hello World!

SEE ALSO


Quick start

123-hello-world See all documentation

$VERSION $DATE