Documentation
¶
Overview ¶
Package ucl implements parser and serializer for UCL (https://rspamd.com/doc/configuration/ucl.html). Currently it supports only plain JSON, but I'm working on that :)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FormatConfig ¶
type FormatConfig struct {
// Indent is a string to use for each indentation level. If not set defaults to 2 spaces.
Indent string `json:",omitempty"`
// MultilineObjectThreshold is the maximum length for an object to be written out on a single line.
// Default is 0, meaning that any non-empty object will be written out with key-value pairs on separate lines.
MultilineObjectThreshold int `json:",omitempty"`
// MultilineObjectThreshold is the maximum length for an array to be written out on a single line.
// Default is 0, meaning that any non-empty array will be written out with items on separate lines.
MultilineArrayThreshold int `json:",omitempty"`
// PreserveObjectKeysOrder must be set to true if you want to keep keys in the same order as in the input.
// By default keys are sorted in lexicographical order.
PreserveObjectKeysOrder bool `json:",omitempty"`
// contains filtered or unexported fields
}
FormatConfig represents the formatter configuration that affects how data is layed out in the output file.
Click to show internal directories.
Click to hide internal directories.