Open topic with navigation

# Go Programmer’s Checklist

Use this checklist when developing programs that use the TIBCO FTL Go API.

When using the group facility, see also Programmer’s Checklist Addenda for Groups.

## Environment

Use the `setup` script in the `samples` directory to set environment variables.

Ensure that the Go compiler is in the `PATH` environment variable.

## Code

Include the package `tibco.com/ftl`.

If your program uses the groups API feature, include the package `tibco.com/ftl/group`.

## Compile and Link

Compile programs with a Go compiler, version 1.12.1 or later.

On the compiler command line, set `CGO_CFLAGS` to <FTL_HOME>/include. For example:

    CGO_CFLAGS="-I /opt/tibco/ftl/7.0.1/include"

On the compiler command line, set `CGO_LDFLAGS` to `<FTL_HOME>/lib`, and include all of the required libraries. For example:

    CGO_LDFLAGS="-L /opt/tibco/ftl/7.0.1/lib -lssl -lcrypto -ltib -ltibutil -ltibgroup"

## Run

On Windows platforms, the `PATH` variable must include the `bin` directory to use the TIBCO FTL DLL files.

On UNIX platforms, the `LD_LIBRARY_PATH` variable must include the `lib` directory to use the TIBCO FTL library files.

Ensure that the FTL server is running, and that each client process can connect to it.

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO FTL® - Enterprise Edition

Copyright © 2009-2024. Cloud Software Group, Inc. All Rights Reserved.