VictoriaMetrics/lib/stringsutil
Aliaksandr Valialkin f8aa445945
all: consistently use stringsutil.JSONString() for formatting JSON strings with fmt.* functions instead of using "%q" formatter
The %q formatter may result in incorrectly formatted JSON string if the original string
contains special chars such as \x1b . They must be encoded as \u001b , otherwise the resulting JSON string
cannot be parsed by JSON parsers.

This is a follow-up for c0caa69939

See https://github.com/VictoriaMetrics/victorialogs-datasource/issues/24
2024-07-17 14:01:37 +02:00
..
json.go all: consistently use stringsutil.JSONString() for formatting JSON strings with fmt.* functions instead of using "%q" formatter 2024-07-17 14:01:37 +02:00
json_test.go all: consistently use stringsutil.JSONString() for formatting JSON strings with fmt.* functions instead of using "%q" formatter 2024-07-17 14:01:37 +02:00
less_natural.go lib/stringsutil: add LessNatural() function for natural sorting 2024-05-13 17:08:56 +02:00
less_natural_test.go lib/logstorage: work-in-progress 2024-05-22 21:01:28 +02:00
less_natural_timing_test.go lib/stringsutil: add LessNatural() function for natural sorting 2024-05-13 17:08:56 +02:00
stringsutil.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
stringsutil_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
stringsutil_timing_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00