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

jeffotoni / quick / 341

26 Jun 2025 03:02PM UTC coverage: 53.525% (-0.1%) from 53.625%
341

push

circleci

jeffotoni
fix: Post now receives Query

5 of 23 new or added lines in 2 files covered. (21.74%)

3918 of 7320 relevant lines covered (53.52%)

1465.47 hits per line

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

0.0
/example/quick.query/main.go
1
package main
2

3
import (
4
        "fmt"
5

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

9
// type P struct {
10
//     Code string `json:"code"`
11
// }
12

13
type Q struct {
14
        Query map[string]string `json:"query"`
15
}
16

NEW
17
func main() {
×
NEW
18
        q := quick.New()
×
NEW
19

×
NEW
20
        q.Get("/v1/user", func(c *quick.Ctx) error {
×
NEW
21
                q := c.Query
×
NEW
22
                fmt.Println("query: ", q)
×
NEW
23
                return c.JSON(Q{
×
NEW
24
                        Query: q,
×
NEW
25
                })
×
NEW
26
        })
×
27

NEW
28
        q.Post("/v1/user", func(c *quick.Ctx) error {
×
NEW
29
                q := c.Query
×
NEW
30
                fmt.Println("query: ", q)
×
NEW
31
                return c.JSON(Q{
×
NEW
32
                        Query: q,
×
NEW
33
                })
×
NEW
34
        })
×
35

36
        /// Start the server on port 8080
NEW
37
        q.Listen("0.0.0.0:8080")
×
38
}
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