Documentation
¶
Overview ¶
Package parse provides a parser for messages with key/value pairs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Text []byte // message text List [][]byte // key/value pairs // contains filtered or unexported fields }
Message represents a message with text and any assocated key/value pairs.
Notes ¶
Bugs ¶
Uses the unsafe package to cast a byte slice to a string. This could break in future versions of Go. The reason for this conversion is that there is no equivalent to strconv.UnquoteChar that works on a byte slice.
Click to show internal directories.
Click to hide internal directories.