{"id":22576619,"url":"https://github.com/ndolestudio/go-http-client","last_synced_at":"2025-10-16T11:36:43.615Z","repository":{"id":57637978,"uuid":"430085998","full_name":"NdoleStudio/go-http-client","owner":"NdoleStudio","description":"Template for building HTTP API clients in Go","archived":false,"fork":false,"pushed_at":"2023-08-30T13:54:38.000Z","size":13,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-26T02:39:13.160Z","etag":null,"topics":["api-client","go","go-api-client","golang"],"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/NdoleStudio.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":"2021-11-20T11:37:07.000Z","updated_at":"2025-03-28T16:35:43.000Z","dependencies_parsed_at":"2024-06-20T02:52:00.724Z","dependency_job_id":"4d81b4b6-05ba-49cb-9552-2f812bb69a0c","html_url":"https://github.com/NdoleStudio/go-http-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/NdoleStudio/go-http-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Fgo-http-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Fgo-http-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Fgo-http-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Fgo-http-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NdoleStudio","download_url":"https://codeload.github.com/NdoleStudio/go-http-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Fgo-http-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279184193,"owners_count":26121565,"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","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api-client","go","go-api-client","golang"],"created_at":"2024-12-08T04:07:22.742Z","updated_at":"2025-10-16T11:36:43.580Z","avatar_url":"https://github.com/NdoleStudio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-http-client\n\n[![Build](https://github.com/NdoleStudio/go-http-client/actions/workflows/main.yml/badge.svg)](https://github.com/NdoleStudio/go-http-client/actions/workflows/main.yml)\n[![codecov](https://codecov.io/gh/NdoleStudio/go-http-client/branch/main/graph/badge.svg)](https://codecov.io/gh/NdoleStudio/go-http-client)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/NdoleStudio/go-http-client/badges/quality-score.png?b=main)](https://scrutinizer-ci.com/g/NdoleStudio/go-http-client/?branch=main)\n[![Go Report Card](https://goreportcard.com/badge/github.com/NdoleStudio/go-http-client)](https://goreportcard.com/report/github.com/NdoleStudio/go-http-client)\n[![GitHub contributors](https://img.shields.io/github/contributors/NdoleStudio/go-http-client)](https://github.com/NdoleStudio/go-http-client/graphs/contributors)\n[![GitHub license](https://img.shields.io/github/license/NdoleStudio/go-http-client?color=brightgreen)](https://github.com/NdoleStudio/go-http-client/blob/master/LICENSE)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/NdoleStudio/go-http-client)](https://pkg.go.dev/github.com/NdoleStudio/go-http-client)\n\n\nThis package provides a generic `go` client template for an HTTP API\n\n## Installation\n\n`go-http-client` is compatible with modern Go releases in module mode, with Go installed:\n\n```bash\ngo get github.com/NdoleStudio/go-http-client\n```\n\nAlternatively the same can be achieved if you use `import` in a package:\n\n```go\nimport \"github.com/NdoleStudio/go-http-client\"\n```\n\n\n## Implemented\n\n- [Status Codes](#status-codes)\n    - `GET /200`: OK\n\n## Usage\n\n### Initializing the Client\n\nAn instance of the client can be created using `New()`.\n\n```go\npackage main\n\nimport (\n\t\"github.com/NdoleStudio/go-http-client\"\n)\n\nfunc main()  {\n\tstatusClient := client.New(client.WithDelay(200))\n}\n```\n\n### Error handling\n\nAll API calls return an `error` as the last return object. All successful calls will return a `nil` error.\n\n```go\nstatus, response, err := statusClient.Status.Ok(context.Background())\nif err != nil {\n    //handle error\n}\n```\n\n### Status Codes\n\n#### `GET /200`: OK\n\n```go\nstatus, response, err := statusClient.Status.Ok(context.Background())\n\nif err != nil {\n    log.Fatal(err)\n}\n\nlog.Println(status.Description) // OK\n```\n\n## Testing\n\nYou can run the unit tests for this client from the root directory using the command below:\n\n```bash\ngo test -v\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndolestudio%2Fgo-http-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndolestudio%2Fgo-http-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndolestudio%2Fgo-http-client/lists"}