Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FormMimeTypes = []string{
"application/x-www-form-urlencoded",
}
View Source
var MimeTypes = []string{
"text/html",
}
Functions ¶
func NewEntityCodec ¶ added in v0.5.0
NewEntityCodec creates a HTML codec that uses pathPrefix for links creation.
func NewEntityFormCodec ¶ added in v0.5.0
NewEntityFormCodec creates a HTML Form codec that uses pathPrefix for links creation. It will generate a form with editable inputs for each field of your github.com/dolanor/rip.Entity.
func NewFormEncoder ¶
func NewFormEncoder(pathPrefix string) func(w io.Writer) *FormEncoder
Types ¶
type FormEncoder ¶
type FormEncoder struct {
// contains filtered or unexported fields
}
func (FormEncoder) Encode ¶
func (e FormEncoder) Encode(v interface{}) error
Click to show internal directories.
Click to hide internal directories.