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

3
import (
4
        "encoding/json"
5
        "fmt"
6
        "log"
7

8
        "github.com/jeffotoni/quick/http/client"
9
)
10

NEW
11
func main() {
×
NEW
12
        // Define a struct to send as JSON
×
NEW
13
        data := struct {
×
NEW
14
                Message string `json:"message"`
×
NEW
15
        }{
×
NEW
16
                Message: "Hello, POST!",
×
NEW
17
        }
×
NEW
18

×
NEW
19
        resp, err := client.Post("http://localhost:3000/v1/user", data)
×
NEW
20
        if err != nil {
×
NEW
21
                log.Fatal(err)
×
NEW
22
        }
×
23

24
        // Unmarshal the JSON response (if applicable)
NEW
25
        var result map[string]string
×
NEW
26
        if err := json.Unmarshal(resp.Body, &result); err != nil {
×
NEW
27
                log.Fatal(err)
×
NEW
28
        }
×
NEW
29
        fmt.Println("POST response:", result["message"])
×
30
}
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