Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Paragraph ¶
type Paragraph struct {
// contains filtered or unexported fields
}
Paragraph accepts any valid JSON string. Its Clean method will remove characters that aren't expected in a long descriptive text. I.e.: Cc (except for \n), Co, Cf, Cs, noncharacters, and � (U+FFFD, the replacement character) are removed.
func (Paragraph) Clean ¶
Clean returns the string, with Cc minus \n, Co, Cf, Cs, noncharacters, and � (U+FFFD) removed.
func (*Paragraph) UnmarshalJSON ¶
type String ¶
type String struct {
// contains filtered or unexported fields
}
String accepts any valid JSON string. Its Clean method will remove characters that aren't expected in a short descriptive text. I.e.: Cc, Co, Cf, Cs, noncharacters, and � (U+FFFD, the replacement character) are removed.
func (String) Clean ¶
Clean returns the string, with Cc, Co, Cf, Cs, noncharacters, and � (U+FFFD) removed.