{"id":15318446,"url":"https://github.com/appleboy/com","last_synced_at":"2025-04-15T02:30:09.103Z","repository":{"id":14276318,"uuid":"75992841","full_name":"appleboy/com","owner":"appleboy","description":"This is an open source project for commonly used functions for the Go programming language.","archived":false,"fork":false,"pushed_at":"2025-01-29T07:16:40.000Z","size":79,"stargazers_count":18,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T08:33:08.044Z","etag":null,"topics":["golang"],"latest_commit_sha":null,"homepage":null,"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/appleboy.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}},"created_at":"2016-12-09T02:14:04.000Z","updated_at":"2025-01-29T05:00:47.000Z","dependencies_parsed_at":"2023-09-26T04:40:08.114Z","dependency_job_id":null,"html_url":"https://github.com/appleboy/com","commit_stats":{"total_commits":94,"total_committers":2,"mean_commits":47.0,"dds":"0.010638297872340385","last_synced_commit":"feb173ac8569452cd355f671734d2e660d5a3a16"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fcom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fcom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fcom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fcom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appleboy","download_url":"https://codeload.github.com/appleboy/com/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248926083,"owners_count":21184381,"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":["golang"],"created_at":"2024-10-01T09:00:10.865Z","updated_at":"2025-04-15T02:30:08.970Z","avatar_url":"https://github.com/appleboy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Common Functions\n\n[![Run Tests](https://github.com/appleboy/com/actions/workflows/go.yml/badge.svg)](https://github.com/appleboy/com/actions/workflows/go.yml)\n[![GoDoc](https://godoc.org/github.com/appleboy/com?status.svg)](https://godoc.org/github.com/appleboy/com)\n[![codecov](https://codecov.io/gh/appleboy/com/branch/master/graph/badge.svg)](https://codecov.io/gh/appleboy/com)\n[![Go Report Card](https://goreportcard.com/badge/github.com/appleboy/com)](https://goreportcard.com/report/github.com/appleboy/com)\n\nThis is an open source project for commonly used functions for the [Go programming language](https://golang.org/).\n\n## Feature\n\n* [x] Random\n* [x] Array\n* [x] File\n* [x] Convert\n\n## Benchmrk\n\n```sh\ngoos: linux\ngoarch: amd64\npkg: github.com/appleboy/com/array\ncpu: Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz\nBenchmarkArrayInMap\nBenchmarkArrayInMap-2           411962          8343 ns/op        5224 B/op           8 allocs/op\nBenchmarkArrayInSlice\nBenchmarkArrayInSlice-2        4165724           863.8 ns/op           0 B/op           0 allocs/op\nBenchmarkIn\nBenchmarkIn-2                  4610620           776.3 ns/op        1792 B/op           1 allocs/op\nBenchmarkInArray\nBenchmarkInArray-2              388922          9177 ns/op        1624 B/op         101 allocs/op\nPASS\nok      github.com/appleboy/com/array    16.040s\ngoos: linux\ngoarch: amd64\npkg: github.com/appleboy/com/convert\ncpu: Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz\nBenchmarkCountParamsOld\nBenchmarkCountParamsOld-2             2575500          1400 ns/op           0 B/op           0 allocs/op\nBenchmarkCountParamsNew\nBenchmarkCountParamsNew-2            33431834           108.5 ns/op           0 B/op           0 allocs/op\nBenchmarkBytesToStrOld01\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleboy%2Fcom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappleboy%2Fcom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleboy%2Fcom/lists"}