Flagship wrapper for C expose functions compiled by Go SDK.
- syntax:
init(char* environmentID, char* apiKey, int polling, char* logLevel, int trackingEnabled) - default:
none - return:
void
Initialize the SDK with 5 arguments : Environment id, Api Key, Polling Interval, Log level and Tracking enabled. Once the initialization is done the 1st time, the second you execute the script it will bypass the initialization.
- syntax:
getFlagBool(char* visitorID, char* contextString, char* key, int defaultValue, int activate) - default:
none - return:
int
Return flag that corresponds to the visitor id and context.
- syntax:
getFlagNumber(char* visitorID, char* contextString, char* key, double defaultValue, int activate) - default:
none - return:
double
Return flag that corresponds to the visitor id and context.
- syntax:
getFlagString(char* visitorID, char* contextString, char* key, char* defaultValue, int activate) - default:
none - return:
char*
Return flag that corresponds to the visitor id and context.
- syntax:
getAllFlags(char* visitorID, char* contextString) - default:
none - return:
char*
Return all flags that corresponds to the visitor id and context (flags are separated by ";").
- Go
cd flagship-c-go-wrapper
chmod +x ./entrypoint.sh
./entrypoint.shThen copy the shared object generated in build folder.
