varToCf

fnstring varToCf(ref const var v, CfWriterConfig config = CfWriterConfig.init) @safe

Converts a var value to CF format string.

Handles all var.Type values: NULL, BOOL, all integer types, all float types, STRING, ARRAY, OBJECT, and the temporal types (DATE, TIME, DATETIME, SYSTIME, DURATION).

Top-level objects are written as bare key-value pairs (HCL/CF style) without enclosing braces. Nested objects use `{...}` notation.

Parameters

vThe var value to serialize.
configOptional writer configuration.

Returns

A CF formatted string.