13 lines
164 B
Go
13 lines
164 B
Go
package funcs
|
|
|
|
import (
|
|
"html/template"
|
|
"net/http"
|
|
|
|
"github.com/gorilla/csrf"
|
|
)
|
|
|
|
func CsrfField(r *http.Request) template.HTML {
|
|
return csrf.TemplateField(r)
|
|
}
|