Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidUTF8 = errors.New("invalid UTF-8")
Functions ¶
func AppendString ¶
appendString appends src to dst as a JSON string per RFC 7159, section 7. This rejects input that contains invalid UTF-8.
func EscapeString ¶
EscapeString escapes JSON string contents. It does not add quotes around it. It returns ErrInvalidUTF8 if s contains invalid UTF-8. That is the only possible error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.