{"id":15748386,"url":"https://github.com/prongbang/callx","last_synced_at":"2026-02-23T22:17:25.027Z","repository":{"id":87919537,"uuid":"275426195","full_name":"prongbang/callx","owner":"prongbang","description":"CallX HTTP Client easy call API for Golang","archived":false,"fork":false,"pushed_at":"2024-09-19T16:36:00.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-07T20:18:48.579Z","etag":null,"topics":["callx","go","go-callx","go-http-client","golang","http","http-client"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prongbang.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":"2020-06-27T17:58:39.000Z","updated_at":"2024-09-19T16:35:13.000Z","dependencies_parsed_at":"2024-02-02T16:57:44.105Z","dependency_job_id":"8c4c1afc-79c9-4aa8-9537-1954b72bf520","html_url":"https://github.com/prongbang/callx","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prongbang%2Fcallx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prongbang%2Fcallx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prongbang%2Fcallx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prongbang%2Fcallx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prongbang","download_url":"https://codeload.github.com/prongbang/callx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243414526,"owners_count":20287137,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["callx","go","go-callx","go-http-client","golang","http","http-client"],"created_at":"2024-10-04T05:41:39.204Z","updated_at":"2026-02-23T22:17:25.022Z","avatar_url":"https://github.com/prongbang.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CallX 🚀\n\n[![Codecov](https://img.shields.io/codecov/c/github/prongbang/callx.svg)](https://codecov.io/gh/prongbang/callx)\n[![Go Report Card](https://goreportcard.com/badge/github.com/prongbang/callx)](https://goreportcard.com/report/github.com/prongbang/callx)\n[![Go Reference](https://pkg.go.dev/badge/github.com/prongbang/callx.svg)](https://pkg.go.dev/github.com/prongbang/callx)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n\u003e A lightweight, fast, and easy-to-use HTTP client for Go. Make API calls with just a few lines of code!\n\n## ✨ Features\n\n- 🚀 **Ultra-fast performance** - Optimized for speed\n- 🛠 **Simple API** - Easy to learn and use\n- 🔧 **Highly customizable** - Full control over requests\n- 🧪 **Well tested** - High test coverage\n\n## ⚡️ Performance\n\nCallX is designed for optimal performance. Here are the benchmark results:\n\n| HTTP Method  | Operations | Time per Operation |\n|-------------|------------|-------------------|\n| GET         | 41,756     | 31,823 ns/op      |\n| POST        | 38,692     | 35,787 ns/op      |\n| POST-ENCODE | 28,848     | 39,314 ns/op      |\n| PUT         | 31,401     | 35,046 ns/op      |\n| PATCH       | 38,923     | 30,094 ns/op      |\n| DELETE      | 41,100     | 29,195 ns/op      |\n\n## 📦 Installation\n\n```bash\ngo get github.com/prongbang/callx\n```\n\n## 🚀 Quick Start\n\n### Basic Usage\n\n```go\n// Create a client with base URL\nc := callx.Config{\n    BaseURL: \"https://jsonplaceholder.typicode.com\",\n    Timeout: 60,\n}\nreq := callx.New(c)\n\n// Make a GET request\ndata := req.Get(\"/todos/1\")\nfmt.Println(string(data.Data))\n```\n\n## 🔥 Advanced Features\n\n### Custom Request with Authentication\n\n```go\nc := callx.Config{\n    Timeout: 60,\n}\nreq := callx.New(c)\n\ncustom := callx.Custom{\n    URL:    \"https://httpbin.org/post\",\n    Method: http.MethodPost,\n    Header: callx.Header{\n        callx.Authorization: fmt.Sprintf(\"%s %s\", callx.Bearer, \"your-token\"),\n    },\n    Body: callx.Body{\n        \"username\": \"root\",\n        \"password\": \"pass\",\n        \"address\": []string{\n            \"087654321\",\n            \"089786756\",\n        },\n    },\n}\n\ndata := req.Req(custom)\nfmt.Println(string(data.Data))\n```\n\n### Form-encoded Requests\n\n```go\nc := callx.Config{\n    Timeout: 60,\n}\nreq := callx.New(c)\n\nform := url.Values{}\nform.Set(\"message\", \"Test\")\n\ncustom := callx.Custom{\n    URL:    \"https://httpbin.org/post\",\n    Method: http.MethodPost,\n    Header: callx.Header{\n        callx.Authorization: \"Bearer XTZ\",\n        callx.ContentType:   \"application/x-www-form-urlencoded\",\n    },\n    Form: strings.NewReader(form.Encode()),\n}\n\ndata := req.Req(custom)\nfmt.Println(string(data.Data))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprongbang%2Fcallx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprongbang%2Fcallx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprongbang%2Fcallx/lists"}