Documentation
¶
Overview ¶
Package contentline reads and writes the content lines of vCard and iCalendar, which have the same rules: a property's name, its parameters, and its value, folded so no line is more than 75 octets, with the characters of text values escaped. Reference: https://www.rfc-editor.org/rfc/rfc6350#section-3.2
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Escape ¶
Escape escapes a text value, whose backslashes, commas, semicolons and line breaks must be escaped
func Split ¶
Split returns the parts of a value, which are separated with the separator where it isn't escaped, such as the semicolons between the components of a structured value, or the commas of a list, unescaped
Types ¶
type Property ¶
Property is a content line, which is a property's group, such as item1, its name, in upper case, such as EMAIL, its parameters, by their names in upper case, such as TYPE, and its value, which is still escaped
func Parse ¶
Parse returns the property of a content line, or false when it isn't one. The value starts after the first colon which isn't in a quoted parameter. A parameter without a name, such as HOME in vCard 2.1's TEL;HOME, is a TYPE, and a parameter's values are split at commas which aren't quoted.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader reads content lines, unfolded
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer writes content lines, each ending with CRLF, and folded so no line is more than 75 octets