Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatTXTRecord ¶
FormatTXTRecord splits a long string in chunks of 255 characters, and quotes each of the chunks. Existing quotes will be escaped.
- hello world => "hello world" - hello "world" => "hello \"world\""
This function can be reversed with [ParseTXTValue].
func IsTXTRecordQuoted ¶
IsTXTRecordQuoted returns wether a the given string starts and ends with quotes.
- hello world => false - "hello world" => true
func ParseTXTRecord ¶
ParseTXTRecord joins multiple quoted strings into a single unquoted string.
- "hello world" => hello world - "hello \"world\"" => hello "world"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.