• 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.start/start.go
1
package main
2

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

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

×
NEW
8
        // Sets a GET route for "/v1/user"
×
NEW
9
        q.Get("/v1/user", func(c *quick.Ctx) error {
×
NEW
10
                c.Set("Content-Type", "application/json")                       // Sets the content type as JSON
×
NEW
11
                return c.Status(200).SendString("Quick in action with Cors❤️!") // Returns a success message
×
NEW
12
        })
×
13

14
        // Sets a GET route for "/v2"
NEW
15
        q.Get("/v2", func(c *quick.Ctx) error {
×
NEW
16
                c.Set("Content-Type", "application/json")         // Sets the content type as JSON
×
NEW
17
                return c.Status(200).SendString("Is in the air!") // Returns a message indicating that the service is active
×
NEW
18
        })
×
19

20
        // Sets a GET route for "/v3"
NEW
21
        q.Get("/v3", func(c *quick.Ctx) error {
×
NEW
22
                c.Set("Content-Type", "application/json")   // Sets the content type as JSON
×
NEW
23
                return c.Status(200).SendString("Running!") // Returns a message confirming that the server is running
×
NEW
24
        })
×
25

26
        // Starts the server on port 8080, allowing connections from any IP
NEW
27
        q.Listen("0.0.0.0.0.0:8080")
×
28
}
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