Skip to content

Commit

Permalink
add html to context
Browse files Browse the repository at this point in the history
  • Loading branch information
chonglou committed May 11, 2017
1 parent 4d9e06c commit f2560fb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions context.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ import (
"net/http"
"strings"

validator "gopkg.in/go-playground/validator.v9"

"github.com/go-playground/form"
"github.com/unrolled/render"
validator "gopkg.in/go-playground/validator.v9"
)

// K key type
Expand Down Expand Up @@ -94,6 +93,11 @@ func (p *Context) XML(s int, v interface{}) error {
return p.rdr.XML(p.Writer, s, v)
}

// HTML write xml
func (p *Context) HTML(s int, t string, v interface{}) error {
return p.rdr.HTML(p.Writer, s, t, v)
}

// Bind binds the passed struct pointer
func (p *Context) Bind(v interface{}) error {
e := p.Request.ParseForm()
Expand Down

0 comments on commit f2560fb

Please sign in to comment.