Documentation ¶
Index ¶
- Variables
- func CountHandler(w http.ResponseWriter, r *http.Request)
- func GetCookie(w http.ResponseWriter, r *http.Request, name string) (string, bool)
- func GetSecureCookie(w http.ResponseWriter, r *http.Request, name string) (string, bool)
- func HandleForm(r *http.Request)
- func HelloHandler(w http.ResponseWriter, r *http.Request)
- func JSONHandler(m interface{}, w http.ResponseWriter, r *http.Request)
- func MakeHandler(fn func(http.ResponseWriter, *http.Request)) http.HandlerFunc
- func NewPostHandler(w http.ResponseWriter, r *http.Request)
- func ParseTemplateGlob(pattern string, cache bool)
- func PostHandler(w http.ResponseWriter, r *http.Request)
- func PostJSONHandler(w http.ResponseWriter, r *http.Request)
- func RenderTemplate(w http.ResponseWriter, tmpl string, context m)
- func SetCookie(w http.ResponseWriter, r *http.Request, name string, value string, age int64)
- func SetSecureCookie(w http.ResponseWriter, r *http.Request, name string, val string, age int64)
- func TestCookieGetHandler(w http.ResponseWriter, r *http.Request)
- func TestCookieSetHandler(w http.ResponseWriter, r *http.Request)
- type Handler
Constants ¶
This section is empty.
Variables ¶
View Source
var (
CookieSecret = "7C19QRmwf3mHZ9CPAaPQ0hsWeufKd"
)
template config
Functions ¶
func CountHandler ¶
func CountHandler(w http.ResponseWriter, r *http.Request)
func GetSecureCookie ¶
func HandleForm ¶
func HelloHandler ¶
func HelloHandler(w http.ResponseWriter, r *http.Request)
func JSONHandler ¶
func JSONHandler(m interface{}, w http.ResponseWriter, r *http.Request)
func MakeHandler ¶
func MakeHandler(fn func(http.ResponseWriter, *http.Request)) http.HandlerFunc
func NewPostHandler ¶
func NewPostHandler(w http.ResponseWriter, r *http.Request)
func ParseTemplateGlob ¶
func PostHandler ¶
func PostHandler(w http.ResponseWriter, r *http.Request)
func PostJSONHandler ¶
func PostJSONHandler(w http.ResponseWriter, r *http.Request)
func RenderTemplate ¶
func RenderTemplate(w http.ResponseWriter, tmpl string, context m)
func SetSecureCookie ¶
func TestCookieGetHandler ¶
func TestCookieGetHandler(w http.ResponseWriter, r *http.Request)
func TestCookieSetHandler ¶
func TestCookieSetHandler(w http.ResponseWriter, r *http.Request)
Types ¶
Click to show internal directories.
Click to hide internal directories.