Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ContentType the custom key for the serializer, when used inside iris, Q web frameworks or simply net/http
ContentType = "application/json"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config is the configuration for this serializer
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns the default configuration for this serializer
func (Config) MergeSingle ¶
MergeSingle merges the default with the given config and returns the result
type Serializer ¶
type Serializer struct {
// contains filtered or unexported fields
}
Serializer the response engine which renders a JSON 'object'
Click to show internal directories.
Click to hide internal directories.