{"id":37185654,"url":"https://github.com/chans-open-source/tools","last_synced_at":"2026-01-14T21:29:38.945Z","repository":{"id":57653694,"uuid":"452901109","full_name":"chans-open-source/tools","owner":"chans-open-source","description":"Repository of dubbo-go cli tools","archived":false,"fork":true,"pushed_at":"2022-02-09T08:01:19.000Z","size":607,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-06-20T03:38:30.412Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"dubbogo/tools","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chans-open-source.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-28T01:24:39.000Z","updated_at":"2022-02-08T08:48:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/chans-open-source/tools","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/chans-open-source/tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chans-open-source%2Ftools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chans-open-source%2Ftools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chans-open-source%2Ftools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chans-open-source%2Ftools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chans-open-source","download_url":"https://codeload.github.com/chans-open-source/tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chans-open-source%2Ftools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28435077,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2026-01-14T21:29:38.268Z","updated_at":"2026-01-14T21:29:38.930Z","avatar_url":"https://github.com/chans-open-source.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dubbo-go-cli\n\n### 1. Problem we solved.\n\nFor the running dubbo-go server, we need a telnet-cli tool to test if the server works healthily.\nThe tool should support dubbo protocol. It makes it easy for you to define your own request pkg and gets rsp struct of your server, and total costing time.\n\n\n### 2. How to get cli-tool\n\n`go get -u github.com/dubbogo/tools/cmd/dubbogo-cli`\n\n### 3. How to get dubbo\n`go get -u github.com/dubbogo/tools/cmd/protoc-gen-dubbo`\n\n### 4. How to get dubbo3\n`go get -u github.com/dubbogo/tools/cmd/protoc-gen-dubbo3`\n\n### 5. How to get imports-formatter\n`go get -u github.com/dubbogo/tools/cmd/imports-formatter`\n\n### 6. Quick start：[example](example/README.md)\n\n# imports-formatter\n\n### 1. Problem we solved.\n\nFor simplifying imports, we provider a tool named imports-formatter.it is a tool that help you format the imports of the project. it is easy to use with several commandline arguments.\n\n### 2. How to get imports-formatter\n\n`go get -u github.com/dubbogo/tools/cmd/imports-formatter`\n\n### 3. Quick start\n\n\u003e Note: Before use it, you need to set environment variable GOROOT(like `export GOROOT=/usr/local/go`).\ntake an example of imports-formatter when we try to format the apache/dubbo-go\n\nsuppose that we have a go file in this project(github.com/dubbogo/tools) with these imports:\n```go\n    import (\n    \t\"os\"\n    \t\"github.com/dubbogo/tools/cmd/main\"\n        \"dubbo.apache.org/dubbo-go/v3/config\"\n        \"dubbo.apache.org/dubbo-go/v3/common\"\n    )\n```\n\nafter execution of `imports-formatter -path . -module github.com/dubbogo/tools -bl false`, it will act like following:\n\n```go\n    import (\n        \"os\"\n    )\n\n    import (\n        \"dubbo.apache.org/dubbo-go/v3/common\"\n        \"dubbo.apache.org/dubbo-go/v3/config\"\n    )\n\n    import (\n        \"github.com/dubbogo/tools/cmd/main\"\t\n    )\n```\n\nimports-formatter will split illegal format imports to three blocks: \n\n1. the first import block is some built-in modules/packages in go language.\n2. the second import block is some third party modules/packages.\n3. the third import block is the modules/packages in this module.\n\nnow we explain the usage of this tool with above command:\n\n`imports-formatter -path . -module github.com/dubbogo/tools -bl false`\n\n- path: the directory that you want to format imports, the default value is current work directory.\n- module: the go module name, you can find it in go.mod of the project. if not set, it will find go.mod in `path` that you set. \n- bl: in second import block, we may have many third party modules, if bl is true, the tool will split these modules with a blank line. The default value is true.\n\nso you can simplified the above command to `imports-formatter -path . -module github.com/dubbogo/tools`, and if you execute this command in the project root path, you can even ignore remaining 2 parameter, only need to type `imports-formatter` on your screen.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchans-open-source%2Ftools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchans-open-source%2Ftools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchans-open-source%2Ftools/lists"}