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.