• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jeffotoni / quick / 264

19 Mar 2025 07:11PM UTC coverage: 52.567% (+0.1%) from 52.456%
264

push

circleci

jeffotoni
type alias for map, examples loggers middleware

0 of 8 new or added lines in 3 files covered. (0.0%)

2713 of 5161 relevant lines covered (52.57%)

1936.6 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/example/middleware/logger/net.http/main.go
1
package main
2

3
import (
4
        "net/http"
5

6
        "github.com/jeffotoni/quick/middleware/logger"
7
)
8

9
func main() {
×
10
        loggerMiddleware := logger.New()
×
11
        jsonLoggerMiddleware := logger.New(logger.Config{Format: "json"})
×
12

×
13
        mux := http.NewServeMux()
×
NEW
14

×
15
        mux.Handle("/v1/user", loggerMiddleware(
×
16
                http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
×
17
                        w.Write([]byte("Hello, Quick 💕!"))
×
18
                })))
×
19

20
        mux.Handle("/v1/logger", jsonLoggerMiddleware(
×
21
                http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
×
22
                        w.Write([]byte("Hello, Quick 💕!"))
×
23
                })))
×
24

25
        http.ListenAndServe(":8080", mux)
×
26
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc