package issue import ( "net/http" ) type Handler struct { mux *http.ServeMux } // ServeHTTP implements http.Handler. func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { h.mux.ServeHTTP(w, r) } func NewHandler() *Handler { h := &Handler{ mux: http.NewServeMux(), } h.mux.HandleFunc("GET /", h.getIssuePage) return h } var _ http.Handler = &Handler{}