Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeCommaSeparated ¶
MergeCommaSeparated accepts two strings, both representing a comma-separated list of values, which are split into their constituted values and returned as a merged, dupe-killed list of values, separated by comma and space. The returned order is all unique values in s1, followed by the unique values from s2 not present in s1
Example Input: s1="zstd, gzip,deflate, gzip" s2="br,gzip, deflate" Example Output: "zstd, gzip, deflate, br"
func MergeDelimeterSeparated ¶
MergeDelimeterSeparated accepts two strings, both representing a delimiter- separated list of values, which are split into their constituted values on the delimiter and returned as a merged, dupe-killed list. Whitespace on either side of the delimiter are trimmed. This is a simple replacement and does not recognize escape sequences, etc. When pad is true, the merged list will include a space following each delimiter instance.
Types ¶
This section is empty.