Documentation
¶
Index ¶
Constants ¶
View Source
const TruncationMarker = "... (truncated)"
TruncationMarker is appended to messages shortened by TruncateMessage so that readers can tell the message is incomplete.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidData ¶
func NewInvalidData ¶
func TruncateMessage ¶ added in v1.21.2
TruncateMessage bounds s to maxLen bytes in total, including the marker which is appended so that readers can tell the message is incomplete.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.