{"id":23745038,"url":"https://github.com/kwangsing3/http_methods_golang","last_synced_at":"2026-07-04T07:32:59.019Z","repository":{"id":57619381,"uuid":"389098118","full_name":"kwangsing3/http_methods_golang","owner":"kwangsing3","description":"http_methods_golang is a tiny wrapper for implementing HTTP request methods with Golang, and designed for reuse in every projects which don't have to implement those METHODS, when a simple communication is in need.","archived":false,"fork":false,"pushed_at":"2022-02-04T16:58:30.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-04T03:27:07.256Z","etag":null,"topics":["golang","http","request","wrapper"],"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/kwangsing3.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}},"created_at":"2021-07-24T12:49:41.000Z","updated_at":"2022-02-04T09:15:15.000Z","dependencies_parsed_at":"2022-09-16T18:50:24.672Z","dependency_job_id":null,"html_url":"https://github.com/kwangsing3/http_methods_golang","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/kwangsing3/http_methods_golang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwangsing3%2Fhttp_methods_golang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwangsing3%2Fhttp_methods_golang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwangsing3%2Fhttp_methods_golang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwangsing3%2Fhttp_methods_golang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kwangsing3","download_url":"https://codeload.github.com/kwangsing3/http_methods_golang/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwangsing3%2Fhttp_methods_golang/sbom","scorecard":{"id":574668,"data":{"date":"2025-08-11","repo":{"name":"github.com/kwangsing3/http_methods_golang","commit":"72271f03a2853b7bfcd3edb8bc37f0b16baca344"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/5 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T17:20:02.034Z","repository_id":57619381,"created_at":"2025-08-20T17:20:02.034Z","updated_at":"2025-08-20T17:20:02.034Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35114172,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-04T02:00:05.987Z","response_time":113,"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":["golang","http","request","wrapper"],"created_at":"2024-12-31T12:52:57.245Z","updated_at":"2026-07-04T07:32:58.980Z","avatar_url":"https://github.com/kwangsing3.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# http_method_golang\n\u0026emsp; **http_methods_golang** is a tiny wrapper for implementing HTTP request methods with Golang, and designed for reuse in every projects which don't have to implement those **METHODS**, when a simple communication is in need.\n\n# Methods\n\u0026emsp;HTTP Protocol defined serveal request methods for gaining data and contents using Network.\n| METHOD  |  STATUS |   \n| --------|---------|\n| GET     |√|\n| POST    |√|\n| HEAD    |--|\n| PUT     |√|\n| DELETE  |√|\n| CONNECT |--|\n| OPTIONS |--|\n| TRACE   |--|\n| PATCH   |--| \n\n| OPERATE |  STATUS |   \n| --------|---------|\n| READ  FILE   |√|\n| WRITE FILE   |√|\n\n# Install\n```sh\ngo get github.com/kwangsing3/http_methods_golang\n```\n\n\n\n# Usage\n\n* ## GET\n1. Would return HTML file if request target is website. \u003cbr/\u003e\n2. Would return bytes if request a data.\n``` go\n//GET: To get data from GET method, need to wait for respone\n//\u003curl\u003e: request address.\nfunc GET(url string) ([]byte, error)\n```\n* ## POST\n1. Mostly use for encrypt request or requested using ```\u003cform\u003e```.\n2. May using for change server status or special request (Depends on the design).\n``` go\n//POST: To get data from POST method, need to wait for respone\n//\u003curl\u003e: request address.\n//\u003cquery\u003e: The query you want to do, mostly are json, but still depends on the server you request.\nfunc POST(url string, query []byte) ([]byte, error) \n```\n\n* ## DELETE\n``` go\n//DELETE: http Delete method request\nfunc DELETE(url string) ([]byte, error) \n```\n* ## PUT\n``` go\n//PUT: http Delete method request\nfunc PUT(url string, content string) ([]byte, error) \n```\n# Example\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\t\"fmt\"\n\tHMG \"github.com/kwangsing3/http_methods_golang\"\n)\n\nfunc main() {\n\n\t/***GET request***/\n\tdataGET, errG := HMG.GET(\"https://example.com\")\n\tif errG != nil {\n\t\tfmt.Println(errG.Error())\n\t} \n\n\tfmt.Println(string(dataGET))\n\t/*** POST request***/\n\tquery := struct {\n\t\tMsg string\n\t}{\n\t\tMsg: `New Message`, //query Struct depends on the server you request.\n\t}\n\tbytequery, _ := json.Marshal(query)\n\tdataPOST, errP := HMG.POST(\"https://example.com\", bytequery)\n\tif errP != nil {\n\t\tfmt.Println(errP.Error())\n\t} \n\n\tfmt.Println(string(dataPOST))\n    return\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkwangsing3%2Fhttp_methods_golang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkwangsing3%2Fhttp_methods_golang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkwangsing3%2Fhttp_methods_golang/lists"}