Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddWarning ¶
AddWarning records a warning for the specified agent and text to the Recorder added to the provided context using WithWarningRecorder(). If no Recorder exists in the provided context, this is a no-op. agent must be valid UTF-8, and must not contain spaces, quotes, backslashes, or control characters. text must be valid UTF-8, and must not contain control characters.
Types ¶
type Recorder ¶
type Recorder interface { // AddWarning adds the specified warning to the response. // agent must be valid UTF-8, and must not contain spaces, quotes, backslashes, or control characters. // text must be valid UTF-8, and must not contain control characters. AddWarning(agent, text string) }
Recorder provides a method for recording warnings
Click to show internal directories.
Click to hide internal directories.