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

jeffotoni / quick / 214

04 Mar 2025 07:11AM UTC coverage: 49.209% (-26.0%) from 75.221%
214

push

circleci

jeffotoni
Merge branch 'feature/refactory_http_client'

new version http client

32 of 1275 new or added lines in 44 files covered. (2.51%)

15 existing lines in 1 file now uncovered.

1803 of 3664 relevant lines covered (49.21%)

2724.12 hits per line

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

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

3
import "github.com/jeffotoni/quick"
4

NEW
5
func main() {
×
NEW
6
        q := quick.New() // Initialize Quick framework
×
NEW
7

×
NEW
8
        // PUT route to update a user by ID
×
NEW
9
        q.Put("/users/:id", func(c *quick.Ctx) error {
×
NEW
10
                userID := c.Param("id") // Retrieve the user ID from the URL parameter
×
NEW
11
                // Logic to update user data would go here
×
NEW
12
                return c.Status(200).SendString("User " + userID + " updated successfully!")
×
NEW
13
        })
×
14

15
        // PUT route to update a specific type by ID
NEW
16
        q.Put("/tipos/:id", func(c *quick.Ctx) error {
×
NEW
17
                tiposID := c.Param("id") // Retrieve the type ID from the URL parameter
×
NEW
18
                // Logic to update the type would go here
×
NEW
19
                return c.Status(200).SendString("User " + tiposID + " type updated successfully!")
×
NEW
20
        })
×
21

22
        // Start the server and listen on port 8080
NEW
23
        q.Listen(":8080")
×
24
}
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