libhttp/server.go

12 lines
174 B
Go

package libhttp
import (
"net/http"
"github.com/gorilla/mux"
)
type Server interface {
HandleFunc(path string, f func(http.ResponseWriter, *http.Request)) *mux.Route
}