Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var JSONEncoder = fx.Annotated{ Target: NewJSON, Group: "rb.encoder", }
View Source
var TemplateEncoder = fx.Annotated{ Target: NewTemplate, Group: "rb.encoder", }
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct {
EncoderOrder []string `env:"RB_VIEW_ENCODER_ORDER" envSeparator:","`
}
Conf configures the binder
type Encoder ¶
type Encoder interface {
MIME() string
Encode(w http.ResponseWriter, r *http.Request, v interface{}, o Options) error
}
func NewTemplate ¶
Click to show internal directories.
Click to hide internal directories.