{"id":23585483,"url":"https://github.com/ghdwlsgur/gostat","last_synced_at":"2025-07-15T06:47:01.420Z","repository":{"id":63846614,"uuid":"570913225","full_name":"ghdwlsgur/gostat","owner":"ghdwlsgur","description":"🖥 interactive CLI tool that uses the net/http package to make an HTTP GET request to a specific URL and checks the latency step by step","archived":false,"fork":false,"pushed_at":"2024-01-19T06:51:08.000Z","size":12681,"stargazers_count":4,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-14T02:41:28.949Z","etag":null,"topics":["curl","http","https","latency"],"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/ghdwlsgur.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":"2022-11-26T14:39:31.000Z","updated_at":"2024-05-29T08:09:38.000Z","dependencies_parsed_at":"2023-01-30T18:45:17.641Z","dependency_job_id":"bd12bae2-fe73-4814-a915-f49e540420a2","html_url":"https://github.com/ghdwlsgur/gostat","commit_stats":{"total_commits":130,"total_committers":3,"mean_commits":"43.333333333333336","dds":0.3769230769230769,"last_synced_commit":"1b0c3e0751a8b12853ba4ee7a102faecfb23a28d"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"purl":"pkg:github/ghdwlsgur/gostat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghdwlsgur%2Fgostat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghdwlsgur%2Fgostat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghdwlsgur%2Fgostat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghdwlsgur%2Fgostat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghdwlsgur","download_url":"https://codeload.github.com/ghdwlsgur/gostat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghdwlsgur%2Fgostat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265414829,"owners_count":23761080,"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":["curl","http","https","latency"],"created_at":"2024-12-27T03:15:10.389Z","updated_at":"2025-07-15T06:47:01.395Z","avatar_url":"https://github.com/ghdwlsgur.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\u003cimg width=\"50%\" alt=\"govpn-logo\" src=\"https://user-images.githubusercontent.com/77400522/204132452-9c0182e1-860f-4c79-87f9-a18c68e2de53.png\"\u003e\n\n![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/ghdwlsgur/gostat?color=success\u0026label=version\u0026sort=semver)\n[![Go Report Card](https://goreportcard.com/badge/github.com/ghdwlsgur/gossl)](https://goreportcard.com/report/github.com/ghdwlsgur/gostat)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/4d8e0ef64d1348c19d0ccbae23290eb7)](https://www.codacy.com/gh/ghdwlsgur/gostat/dashboard?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=ghdwlsgur/gostat\u0026utm_campaign=Badge_Grade)\n[![Maintainability](https://api.codeclimate.com/v1/badges/1d8e562559047191efd8/maintainability)](https://codeclimate.com/github/ghdwlsgur/gostat/maintainability)\n[![circle ci](https://circleci.com/gh/ghdwlsgur/gostat.svg?style=svg)](https://circleci.com/gh/ghdwlsgur/gostat)\n\n\u003c/div\u003e\n\n# Overview\n\nThis is an interactive CLI tool that uses the net/http package to make an HTTP GET request to a specific URL and checks the latency step by step. It also displays brief information on request and response headers.\n\n**_It can be useful for testing purposes before transferring to a CNAME record of a domain that uses a CDN domain._**\n\n\u003cdiv align=\"center\"\u003e\n\n![overview](https://github.com/ghdwlsgur/gostat/assets/77400522/0661f993-9cda-4382-9fe3-b54bfa5b57ad)\n\n```bash\ngostat request https://ghdwlsgur.github.io/ -d\n```\n\n\u003c/div\u003e\n\n# Why\n\nThe motivation for creating this tool was that while using the curl command to inspect HTTP GET responses, I found that the options I used became increasingly varied, and the command itself became longer. Personally, I had customized the command with the options I frequently used along with request headers in my zshrc script. However, instead of using this method, I wanted to create a tool with fixed options and request header values that I typically use. I wanted to create a tool that could be useful for others who may have similar concerns or team members who could benefit from it.\n\n[Korean Document](https://ghdwlsgur.github.io/docs)\n\n```bash\ncurl -vo /dev/null -H 'Range:bytes=0-1' --resolve 'naver.com:443:223. 130.195.95' 'https://www.naver.com/include/themecast/targetAndPanels.json'\n```\n\n# Installation\n\n### Mac\n\n```bash\n# [install]\n$ brew tap ghdwlsgur/gostat\n$ brew install gostat\n\n# [upgrade]\n$ brew update --verbose\n$ brew upgrade gostat\n```\n\n### Linux\n\n```bash\n# [install]\n$ wget https://github.com/ghdwlsgur/gostat/releases/download/v1.2.6/gostat_1.2.6_Linux_`uname -m`.tar.gz\n$ tar -xzvf ./gostat_1.2.6_Linux_`uname -m`.tar.gz\n\n# [execute]\n./gostat request https://ghdwlsgur.github.io -d\n```\n\n# Compare\n\n#### /etc/hosts\n\n```bash\n1.1.1.1 example.com\n```\n\n#### gostat\n\n```bash\ngostat request https://example.com/test.txt -t 1.1.1.1\n```\n\nThe gostat command does not make a request to the host IP of example.com, but rather maps it to `1.1.1.1` in the `/etc/hosts` file and then queries DNS for the host IP. This allows you to check the response code and response headers for the HTTP GET method request.\n\n#### curl\n\n```bash\ncurl -k -I https://185.199.108.153/assets/js/runtime\\~main.873fd742.js -H \"Host: ghdwlsgur.github.io\" -H \"Range: bytes=0-1\"\n```\n\n#### gostat\n\n```bash\ngostat request https://ghdwlsgur.github.io/assets/js/runtime\\~main.873fd742.js -t 185.199.108.153\n```\n\n#### curl\n\n```bash\ncurl -vo /dev/null -H 'Range:bytes=0-1' --resolve 'naver.com:443:223.130.195.95' 'https://www.naver.com/include/themecast/targetAndPanels.json'\n```\n\n#### gostat\n\n```bash\ngostat request https://www.naver.com/include/themecast/targetAndPanels.json -t 223.130.195.95\n```\n\nIf you primarily use the `HTTP GET method`, `gostat` may be more intuitive and convenient to use than the `curl` command, which behaves in the same way.\n\n# How to use\n\n**_Simple_**\n\n```bash\ngostat request [URL]\n\n# Example\ngostat request https://www.naver.com\n```\n\n**_Target (domain / ip)_**\n\n```bash\ngostat request [URL] -t [Target(domain or ip)]\n\n# Example\ngostat request https://www.naver.com -t naver.com\ngostat request https://www.naver.com -t 223.130.200.104\n```\n\n**_Request Header (Referer)_**\n\n```bash\ngostat request [URL] -t [Target] -r [Referer]\n\n# Example\ngostat request https://www.naver.com -t naver.com -r http://naver.com\n```\n\n**_Request Header (Host)_**\n\n```bash\ngostat request [URL] -t [Target] -H [Host]\n\n# Example\ngostat request https://www.naver.com -H naver.com\n```\n\n**_Request Header (Authorization)_**\n\n```bash\ngostat request [URL] -A [Authorization]\n```\n\n# License\n\ngossl is licensed under the [MIT](https://github.com/ghdwlsgur/gostat/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghdwlsgur%2Fgostat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghdwlsgur%2Fgostat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghdwlsgur%2Fgostat/lists"}