Documentation ¶
Index ¶
Constants ¶
View Source
const ( // HTML MIME type. HTML = "text/html" // JSON MIME type. JSON = "application/json" // TEXT MIME type. TEXT = "text/plain" // XML MIME type. XML = "application/xml" )
Variables ¶
This section is empty.
Functions ¶
func IsSupported ¶
IsSupported returns true if the provided content type is supported by encoder.
Types ¶
type Encoder ¶
type Encoder interface { // Encode writes the encoding of the value to the stream. Encode(interface{}) error }
Encoder defines basic behavior of encoders.
Click to show internal directories.
Click to hide internal directories.