{"id":15567586,"url":"https://github.com/wgrape/golib","last_synced_at":"2025-04-24T00:04:05.528Z","repository":{"id":43900353,"uuid":"510222521","full_name":"WGrape/golib","owner":"WGrape","description":"A simple and easy-to-use library in go / 一个简单易用的Go语言封装库","archived":false,"fork":false,"pushed_at":"2023-11-29T15:21:23.000Z","size":119,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-24T00:03:58.228Z","etag":null,"topics":["go","golang","library"],"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/WGrape.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-07-04T05:20:52.000Z","updated_at":"2023-03-07T03:30:06.000Z","dependencies_parsed_at":"2023-11-29T16:43:29.319Z","dependency_job_id":null,"html_url":"https://github.com/WGrape/golib","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WGrape%2Fgolib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WGrape%2Fgolib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WGrape%2Fgolib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WGrape%2Fgolib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WGrape","download_url":"https://codeload.github.com/WGrape/golib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250535098,"owners_count":21446508,"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","golang","library"],"created_at":"2024-10-02T17:11:54.325Z","updated_at":"2025-04-24T00:04:05.504Z","avatar_url":"https://github.com/WGrape.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003cimg width=\"250\" src=\"https://user-images.githubusercontent.com/35942268/177622393-c67a9433-eb2b-4de3-a8e9-262d4db48565.png\"\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003c!-- oscs: https://www.oscs1024.com/cd/1543980900807675904?sign=a3d02348 --\u003e\n    \u003c!-- https://www.murphysec.com/ --\u003e\n    \u003ca href=\"https://www.oscs1024.com/project/oscs/WGrape/golib?ref=badge_small\" alt=\"OSCS Status\"\u003e\u003cimg src=\"https://www.oscs1024.com/platform/badge/WGrape/golib.svg?size=small\"/\u003e\u003c/a\u003e\n    \u003cimg src=\"https://img.shields.io/badge/go-1.13+-blue.svg\"\u003e\n    \u003cimg src=\"https://github.com/wgrape/golib/actions/workflows/build.yml/badge.svg\"\u003e\n    \u003cimg alt=\"GitHub release (latest by date)\" src=\"https://img.shields.io/github/v/release/wgrape/golib\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Document-中文/English-orange.svg\"\u003e\n    \u003ca href=\"https://godoc.org/github.com/WGrape/golib\"\u003e\u003cimg src=\"https://godoc.org/github.com/WGrape/golib?status.svg\" \u003e\u003c/a\u003e\n    \u003cimg src=\"https://img.shields.io/badge/License-MIT-green.svg\"\u003e   \n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e    \n    \u003cp\u003eA simple and easy-to-use library in go\u003c/p\u003e\n    \u003cp\u003eDocument ：\u003ca href=\"/README.zh-CN.md\"\u003e中文\u003c/a\u003e / \u003ca href=\"/README.md\"\u003eEnglish\u003c/a\u003e\u003c/p\u003e\n\u003c/div\u003e\n\n## Background\n\nWhen using the Go language, you may feel that time calculation, file processing, array operations, etc. often require a lot of time and code to complete, which is very inconvenient.\n\nIn order to solve this problem, all common complex underlying operations and business operations can be encapsulated into simple and easy-to-use APIs, and the most important thing is that these APIs are unified and standard, and conform to the Go interface specification.\n\nSo the golib project came into being.\n\n## Download\nUsing ```go get``` or ```go mod``` the two ways to download this project. It is recommended to download the latest version.\n\n### go get\n```bash\ngo get github.com/WGrape/golib@latest\n```\n\n### go mod\nIf you put the word latest in place of the tag in the ```go.mod``` file it will get changed to the latest tag the modules.\n\n```mod\nmodule XXX\n\ngo 1.16\n\nrequire (\n    github.com/WGrape/golib latest\n)\n\n```\n\n## Usage\nAfter the download and import are successful, you can call the ```golib package``` as follows.\n\n\u003e The code is from [matching](https://github.com/WGrape/matching/blob/main/pkg/strategy/strategy.go) project.\n\n```go\nimport \"github.com/WGrape/golib/permutation\"\n\n// getCombinationList get the combination list of properties\nfunc (strategy *UseStrategy) getCombinationList(propertyList []string) []string {\n    return permutation.GetCombinationsWithImplode(propertyList, \";\")\n}\n```\n\n## Contributing\nSince this project consists of individual ```package```, there is almost no code reading cost. If you have better ideas, you are very welcome to join in and contribute. Please refer to [Contribution Documentation](.github/CONTRIBUTING.md) on how to contribute.\n\n\u003cimg src=\"https://contrib.rocks/image?repo=wgrape/golib\"\u003e\n\n## Package list\n\n| package         | description                                                                                                    | api                                                                    |\n|-----------------|----------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------|\n| safego          | Package safego provides a series of security behaviors.                                                        | [document](https://pkg.go.dev/github.com/WGrape/golib/safego)          |\n| permutation     | Package permutation provides many algorithms about permutation and combination.                                | [document](https://pkg.go.dev/github.com/WGrape/golib/permutation)     |\n| http            | The http package provides efficient and high-performance network operations.                                   | [document](https://pkg.go.dev/github.com/WGrape/golib/http)            |\n| redis           | Package redis provides advanced operations, such as ```Cache Penetration, Cache Breakdown, Cache Avalanche```. | [document](https://pkg.go.dev/github.com/WGrape/golib/redis)           |\n| desensitization | Package desensitization provides data desensitization support.                                                 | [document](https://pkg.go.dev/github.com/WGrape/golib/desensitization) |\n| time            | Package time provides functionality for measuring and displaying time more efficiently.                        | [document](https://pkg.go.dev/github.com/WGrape/golib/time)            |\n | array           | Package array provides functionality for measuring and displaying array more efficiently.                      | [document](https://pkg.go.dev/github.com/WGrape/golib/array)           |\n| binary          | Package binary provides some operations of binary number and decimal number.                                   | [document](https://pkg.go.dev/github.com/WGrape/golib/binary)          |\n| convert         | Package convert provides simpler conversion between int, float, and string.                                    | [document](https://pkg.go.dev/github.com/WGrape/golib/convert)         |\n| set             | Package set provides simpler set operations.                                                                   | [document](https://pkg.go.dev/github.com/WGrape/golib/set)             |\n| rand            | Package rand provides some random operations.                                                                  | [document](https://pkg.go.dev/github.com/WGrape/golib/rand)            |\n| math            | Package math provides simpler math operations.                                                                 | [document](https://pkg.go.dev/github.com/WGrape/golib/math)            |\n| system          | Package system provides an interface to interact with the linux system.                                        | [document](https://pkg.go.dev/github.com/WGrape/golib/system)          |\n| string          | Package string provides an interface to process string in the simpler way.                                     | [document](https://pkg.go.dev/github.com/WGrape/golib/string)          |\n| slice           | Package slice provides an interface to process slice in the simpler way.                                       | [document](https://pkg.go.dev/github.com/WGrape/golib/slice)           |\n| frontend        | Package frontend provides an interface to work with front-end colleagues in the simpler way.                   | [document](https://pkg.go.dev/github.com/WGrape/golib/frontend)        |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwgrape%2Fgolib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwgrape%2Fgolib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwgrape%2Fgolib/lists"}