Documentation ¶
Overview ¶
Package ffmt provides functions for formatting Cue values.
Package ffmt provides a function to format a string, reducing the whitespace to a minimum
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompactCueVal ¶
CompactCueVal formats a cue.Value as a string, replacing newline characters with middle dot (·) and squashing the whitespace to a minimum
func CompactFmt ¶
CompactFmt formats a string, reducing the whitespace to a minimum (1) replaces every newline character by a middle dot; (2) replaces any adjacent spaces or tabs following the replaced newline by nothing, (3) replaces any other adjacent adjacent spaces or tabs by a single space
func IndentNestedBrackets ¶ added in v0.4.9
IndentNestedBrackets indents nested brackets in a string where brackets is a string of length 2, e.g. "{}", "<>", "[]" and indent is the string to be used for indentation, e.g. " ", "\t"
Types ¶
This section is empty.