Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleRequests ¶
HandleRequests function to define the routes and start the server
Types ¶
type GlobalState ¶
type GlobalState struct {
Count int
}
type NowHandler ¶
func NewNowHandler ¶
func NewNowHandler(now func() time.Time) NowHandler
func (NowHandler) ServeHTTP ¶
func (nh NowHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.