{"id":20009763,"url":"https://github.com/jefferyjob/go-easy-utils","last_synced_at":"2026-01-16T15:58:14.468Z","repository":{"id":142257649,"uuid":"610188125","full_name":"jefferyjob/go-easy-utils","owner":"jefferyjob","description":"Quick toolbox for common data processing developed by Go language。Go语言开发的常用数据处理的快捷工具箱。","archived":false,"fork":false,"pushed_at":"2024-11-19T02:58:24.000Z","size":300,"stargazers_count":338,"open_issues_count":1,"forks_count":25,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-01T13:08:24.857Z","etag":null,"topics":["go","go-easy-utils","utils"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jefferyjob.png","metadata":{"files":{"readme":"README.cn.md","changelog":"CHANGELOG.cn.md","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":"2023-03-06T09:17:06.000Z","updated_at":"2025-03-06T03:25:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"b7825d80-4b45-40e1-bf10-66174f899317","html_url":"https://github.com/jefferyjob/go-easy-utils","commit_stats":{"total_commits":140,"total_committers":9,"mean_commits":"15.555555555555555","dds":0.5714285714285714,"last_synced_commit":"5cc229e3a6de69f3f038a8d7468a990a250a45e2"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jefferyjob%2Fgo-easy-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jefferyjob%2Fgo-easy-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jefferyjob%2Fgo-easy-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jefferyjob%2Fgo-easy-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jefferyjob","download_url":"https://codeload.github.com/jefferyjob/go-easy-utils/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247867353,"owners_count":21009240,"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":["go","go-easy-utils","utils"],"created_at":"2024-11-13T07:17:02.380Z","updated_at":"2025-04-08T15:04:33.136Z","avatar_url":"https://github.com/jefferyjob.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-easy-utils\n\n[![Go](https://img.shields.io/badge/Go-\u003e=1.18-green)](https://go.dev)\n[![Release](https://img.shields.io/github/v/release/jefferyjob/go-easy-utils.svg)](https://github.com/jefferyjob/go-easy-utils/releases)\n[![Action](https://github.com/jefferyjob/go-easy-utils/workflows/Go/badge.svg?branch=main)](https://github.com/jefferyjob/go-easy-utils/actions)\n[![Report](https://goreportcard.com/badge/github.com/jefferyjob/go-easy-utils)](https://goreportcard.com/report/github.com/jefferyjob/go-easy-utils)\n[![Coverage](https://codecov.io/gh/jefferyjob/go-easy-utils/branch/main/graph/badge.svg)](https://codecov.io/gh/jefferyjob/go-easy-utils)\n[![Doc](https://img.shields.io/badge/go.dev-reference-brightgreen?logo=go\u0026logoColor=white\u0026style=flat)](https://pkg.go.dev/github.com/jefferyjob/go-easy-utils/v2)\n[![License](https://img.shields.io/github/license/jefferyjob/go-easy-utils)](https://github.com/jefferyjob/go-easy-utils/blob/main/LICENSE)\n\n[English](README.md) | 简体中文\n\n## 介绍\n这是一个基于 Go 语言开发的通用数据类型处理工具类，帮助开发者在业务代码实现中处理常见的数据类型和数据操作。可以让您专注于您的业务代码的实现，而免去处理基本数据类型转换和验证的功能。该工具库无侵入式的设计可以让您的业务代码更容易阅读和优雅。\n\n## 快速开始\n**安装**\n\n使用 `Go1.18` 及以上版本的用户，建议安装 `v2.x.x`。 因为 `v2.x.x` 应用 `Go1.18` 的泛型重写了大部分函数。\n```bash\ngo get -u github.com/jefferyjob/go-easy-utils/v2\n```\n\n使用 `Go1.18` 以下版本的用户，请使用 [v1.x](https://github.com/jefferyjob/go-easy-utils/tree/v1) 版本\n\n**使用Demo**\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/jefferyjob/go-easy-utils/v2/sliceUtil\"\n)\n\nfunc main() {\n\tvar slice = []string{\"this\", \"is\", \"go\", \"easy\", \"utils\"}\n\tchunkSlice := sliceUtil.ChunkSlice(slice, 2)\n\tfmt.Printf(\"%v\", chunkSlice)\n}\n```\n\n## 功能列表\n\n| 包名         | 函数概要                                                                                  | 文档                 |\n|--------------| ----------------------------------------------------------------------------------------- |----------------------|\n| anyUtil      | 将任意类型的数据转换为指定类型                                                            | [README](anyUtil)    |\n| byteUtil     | 字节数组转换                                                                             | [README](byteUtil)   |\n| cryptoUtil   | 各种加密处理                                                                             | [README](cryptoUtil) |\n| emojiUtil    | 表情符号的解码和编码                                                                     | [README](emojiUtil)  |\n| floatUtil    | 浮点数数据处理                                                                           | [README](floatUtil)  |\n| intUtil      | 数值数据处理                                                                           | [README](intUtil)    |\n| jsonUtil     | JSON 数据转换，支持弱类型转换                                                             | [README](jsonUtil)   |\n| mapUtil      | Map 类型数据处理                                                                        | [README](mapUtil)    |\n| mathUtil     | 数学函数可以处理整数和浮点数范围内的值                                                     | [README](mathUtil)   |\n| randUtil     | 随机数生成，包括：数字、字符串、字节数组                                                   | [README](randUtil)   |\n| sliceUtil    | 切片处理（分组、求和、转换、合并等）                                                       | [README](sliceUtil)  |\n| strUtil      | 字符串转换处理                                                                           | [README](strUtil)    |\n| validUtil    | 常见数据验证，如：中文、英文、姓名、身份证号、电话号码、电子邮件                          | [README](validUtil)  |\n\n## 许可证\n本库采用 Apache-2.0 进行授权。有关详细信息，请参阅 LICENSE 文件。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjefferyjob%2Fgo-easy-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjefferyjob%2Fgo-easy-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjefferyjob%2Fgo-easy-utils/lists"}