Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
func (*Application) Run ¶
func (app *Application) Run(port int)
type Handler ¶
type Handler func(app *Application, w http.ResponseWriter, r *Request)
var MeHandler Handler = func(app *Application, w http.ResponseWriter, r *Request) { fmt.Fprintf(w, fmt.Sprintf("Welcome %s", r.User.Username)) }
func (Handler) ServeHTTP ¶
func (h Handler) ServeHTTP(app *Application, w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.