{"id":42044635,"url":"https://github.com/subchen/go-curl","last_synced_at":"2026-01-26T06:06:40.118Z","repository":{"id":68620278,"uuid":"120906371","full_name":"subchen/go-curl","owner":"subchen","description":"A Go HTTP client library for creating and sending API requests","archived":false,"fork":false,"pushed_at":"2018-03-15T15:48:38.000Z","size":108,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T05:08:11.467Z","etag":null,"topics":["curl","golang","http","request","rest-api"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/subchen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-09T13:02:42.000Z","updated_at":"2024-02-17T12:26:30.000Z","dependencies_parsed_at":"2023-07-30T12:15:55.776Z","dependency_job_id":null,"html_url":"https://github.com/subchen/go-curl","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/subchen/go-curl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subchen%2Fgo-curl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subchen%2Fgo-curl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subchen%2Fgo-curl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subchen%2Fgo-curl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subchen","download_url":"https://codeload.github.com/subchen/go-curl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subchen%2Fgo-curl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28768074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T03:54:34.369Z","status":"ssl_error","status_checked_at":"2026-01-26T03:54:33.031Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["curl","golang","http","request","rest-api"],"created_at":"2026-01-26T06:06:40.044Z","updated_at":"2026-01-26T06:06:40.098Z","avatar_url":"https://github.com/subchen.png","language":"Go","readme":"# go-curl\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/subchen/go-curl)](https://goreportcard.com/report/github.com/subchen/go-curl)\n[![GoDoc](https://godoc.org/github.com/subchen/go-curl?status.svg)](https://godoc.org/github.com/subchen/go-curl)\n\nA Go HTTP client library for creating and sending API requests\n\n## Examples\n\n```go\nimport \"github.com/subchen/go-curl\"\n```\n\n### Basic request\n\n```go\nreq := curl.NewRequest(nil)\n\n// GET\nresp, err := req.Get(\"http://example.com/api/users\")\nif err != nil {\n\tlog.Fatalln(\"Unable to make request: \", err)\n}\nfmt.Println(resp.Text())\n\n// POST\nuser := \u0026User{...}\nresp, err := req.Post(\"http://example.com/api/users\", user)\nif err != nil {\n\tlog.Fatalln(\"Unable to make request: \", err)\n}\nfmt.Println(resp.Text())\n```\n\n### Chained request\n\n```go\nuser := newUser()\nreq := curl.NewRequest()\nresp, err := req.WithBasicAuth(\"admin\", \"passwd\").WithHeader(\"x-trace-id\", \"123\").Post(\"http://example.com/api/users\")\nif err != nil {\n\tlog.Fatalln(\"Unable to make request: \", err)\n}\nfmt.Println(resp.Text())\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubchen%2Fgo-curl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubchen%2Fgo-curl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubchen%2Fgo-curl/lists"}