{"id":34147756,"url":"https://github.com/woyotoo/gotools","last_synced_at":"2026-03-13T00:32:14.741Z","repository":{"id":57661894,"uuid":"477309362","full_name":"woyotoo/gotools","owner":"woyotoo","description":"helpful go tools (go utils)","archived":false,"fork":false,"pushed_at":"2023-05-18T16:02:41.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-11T23:49:50.051Z","etag":null,"topics":["go","go-utils","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/woyotoo.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-04-03T10:37:58.000Z","updated_at":"2023-10-11T08:05:38.000Z","dependencies_parsed_at":"2024-06-20T04:12:30.991Z","dependency_job_id":null,"html_url":"https://github.com/woyotoo/gotools","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/woyotoo/gotools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woyotoo%2Fgotools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woyotoo%2Fgotools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woyotoo%2Fgotools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woyotoo%2Fgotools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/woyotoo","download_url":"https://codeload.github.com/woyotoo/gotools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woyotoo%2Fgotools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30451565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T21:31:01.033Z","status":"ssl_error","status_checked_at":"2026-03-12T21:30:43.161Z","response_time":114,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["go","go-utils","golang"],"created_at":"2025-12-15T04:30:43.687Z","updated_at":"2026-03-13T00:32:14.710Z","avatar_url":"https://github.com/woyotoo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My Go Tools (Golang实用工具)\n\n\n\n## 安装 install\n\n使用 go get 下载包\n\n```sh\n$ go get -u github.com/wangyongtao/gotools\n```\n\n代码示例 (详见 [examples](./examples/helloworld/))：\n\n```go\n// main.go\npackage main\n\nimport (\n    \"fmt\"\n    \"github.com/wangyongtao/gotools/util\" // \u003c---- 引入工具库\n)\n\n// 演示加密字符串、校验加密结果\nfunc main() {\n    fmt.Println(\"hello, world!\")\n\n    // 加密：encrypt\n    // 用户密码，需要加密存储\n    pwd := \"admin\"\n    hash, _ := util.PasswordHash(pwd)\n\n    fmt.Println(\"==\u003e 密码加密:\")\n    fmt.Println(\"--\u003e 输入的密码:\", pwd)\n    fmt.Println(\"--\u003e 生成的hash:\", hash)\n    // hash: $2a$10$tL00vjlVzidXygcmmW7naObKkI2CgoH9lcaT/DYAFWVAbVO/PVMiu\n\n    // 校验 verify\n    // 登录账户时，将用户输入的密码加密后，与数据中查询的加密密码对比，校验通过则说明用户密码输入正确 \n    fmt.Println(\"==\u003e 对比加密结果:\")\n    match := util.PasswordVerify(pwd, hash)\n\n    fmt.Println(\"--\u003e 验证结果:\", match)\n}\n\n```\n\n## 推荐 recommend\n\n| url                                  | remark             | \n| ------------------------------------ | ------------------ | \n| github.com/gin-gonic/gin             | web framework |\n| github.com/labstack/echo             | web framework |\n| github.com/julienschmidt/httprouter  | httprouter |\n| github.com/bwmarrin/snowflake        | unique id generator | \n| github.com/jmoiron/sqlx              | database | \n| github.com/go-gorm/gorm              | database ORM | \n| github.com/go-sql-driver/mysql       | database mysql | \n| github.com/lib/pq                    | database PostgreSQL | \n| github.com/mattn/go-sqlite3          | database sqlite3 | \n\n\n## 参考 Reference\n\nhttps://go.dev/doc/  \nhttps://github.com/syyongx/php2go   \n\n\n·END·","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoyotoo%2Fgotools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwoyotoo%2Fgotools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoyotoo%2Fgotools/lists"}