package nullcounter import ( "net/http" "alin.ovh/x/log" ) type Options struct{} type NullCounter struct { log *log.Logger } func New(opts *Options, log *log.Logger) *NullCounter { return &NullCounter{ log: log, } } func (nc *NullCounter) Count(r *http.Request, title string) { nc.log.Debug("counting request", "path", r.URL.Path, "title", title) }