{"id":21275869,"url":"https://github.com/pfmt/bytefmt","last_synced_at":"2025-03-15T13:14:10.492Z","repository":{"id":44356686,"uuid":"233260540","full_name":"pfmt/bytefmt","owner":"pfmt","description":"fmt.Formatter for bytes for Go.","archived":false,"fork":false,"pushed_at":"2022-07-17T11:09:02.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T03:29:07.809Z","etag":null,"topics":["formatter","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pfmt.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}},"created_at":"2020-01-11T16:21:19.000Z","updated_at":"2022-07-09T15:03:57.000Z","dependencies_parsed_at":"2022-09-26T17:11:32.192Z","dependency_job_id":null,"html_url":"https://github.com/pfmt/bytefmt","commit_stats":null,"previous_names":["danil/bytefmt"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfmt%2Fbytefmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfmt%2Fbytefmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfmt%2Fbytefmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfmt%2Fbytefmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pfmt","download_url":"https://codeload.github.com/pfmt/bytefmt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243732303,"owners_count":20338839,"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":["formatter","go","golang"],"created_at":"2024-11-21T09:39:22.331Z","updated_at":"2025-03-15T13:14:10.468Z","avatar_url":"https://github.com/pfmt.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bytefmt\n\n[![Build Status](https://cloud.drone.io/api/badges/pfmt/bytefmt/status.svg)](https://cloud.drone.io/pfmt/bytefmt)\n[![Go Reference](https://pkg.go.dev/badge/github.com/pfmt/bytefmt.svg)](https://pkg.go.dev/github.com/pfmt/bytefmt)\n\nfmt.Formatter for bytes for Go.  \nSource files are distributed under the BSD-style license.\n\n## About\n\nThe software is considered to be at a alpha level of readiness,\nits extremely slow and allocates a lots of memory.\n\n## Benchmark\n\n```sh\n$ go test -count=1 -race -bench ./... \ngoos: linux\ngoarch: amd64\npkg: github.com/pfmt/bytefmt\ncpu: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz\nBenchmarkNamesInitialize/bytefmt_test.go:25/B_K_M_G_T_P_E-8             39951830            27.57 ns/op\nBenchmarkNamesUpdate/bytefmt_test.go:25/B_K_M_G_T_P_E-8                 26603611            45.11 ns/op\nBenchmarkBytesKilobytes/bytefmt_test.go:135/more_than_one_kilobyte100500-8          140618920            8.509 ns/op\nBenchmarkBytesMegabytes/bytefmt_test.go:192/more_than_one_megabyte10050000-8        138513890            8.809 ns/op\nBenchmarkBytesGigabytes/bytefmt_test.go:249/more_than_one_gigabyte10050000000-8     142891880            8.600 ns/op\nBenchmarkBytesTerabytes/bytefmt_test.go:305/more_than_one_terabyte10050000000000-8  134421912            8.848 ns/op\nBenchmarkBytesPetabytes/bytefmt_test.go:361/more_than_one_petabyte10050000000000000-8           137171584            8.585 ns/op\nBenchmarkBytesExabytes/bytefmt_test.go:417/more_than_one_exabyte10050000000000000000-8          115660819            9.995 ns/op\nBenchmarkBytesString/bytefmt_test.go:478/more_than_one_kilobyte1128-8                             516264          2191 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:532/general_format_%_v_0-8                                   354811          3189 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:589/general_format_%_v_1-8                                   302640          3993 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:646/general_format_%_v_1024-8                                301698          3953 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:703/general_format_%_v_1128-8                                277060          3980 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:758/string_format_%_s_0-8                                    221612          5426 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:815/string_format_%_s_1-8                                    186770          6361 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:872/string_format_%_s_1024-8                                 175197          6228 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:929/string_format_%_s_1128-8                                 175212          6368 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:984/double-quoted_string_format_%_q_0-8                      182739          5915 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:1041/double-quoted_string_format_%_q_1-8                     174912          6732 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:1098/double-quoted_string_format_%_q_1024-8                  170857          6785 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:1155/double-quoted_string_format_%_q_1128-8                  151651          7537 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:1212/float_format_%_f_0-8                                    343336          3369 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:1261/float_format_%f_1-8                                     289450          4022 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:1316/float_format_%_f_1024-8                                 262078          4304 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:1371/float_format_%_f_1128-8                                 251532          4606 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:1426/float_precision_1_format_%_.1f_0-8                      321405          3671 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:1493/float_precision_1_format_%_.1f_1-8                      255786          4530 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:1548/float_precision_1_format_%_.1f_1024-8                   246115          4559 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:1603/float_precision_1_format_%_.1f_1128-8                   247501          4690 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:1658/integer_format_%_d_0-8                                  392388          2986 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:1713/integer_format_%_d_1-8                                  391381          2926 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:1768/integer_format_%_d_1024-8                               383541          2947 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:1823/integer_format_%_d_1128-8                               383028          2930 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:1878/integer_precision_2_format_%_.2d_0-8                    371394          3198 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:1951/integer_precision_2_format_%_.2d_1-8                    366048          3233 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:2030/integer_precision_2_format_%_.2d_1024-8                 370528          3233 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:2109/integer_precision_2_format_%_.2d_1128-8                 352330          3241 ns/op\nBenchmarkBytesFormat/bytefmt_test.go:2189/name_%_d_1124-8                                         336912          3399 ns/op\nPASS\nok      github.com/pfmt/bytefmt 53.015s\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfmt%2Fbytefmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpfmt%2Fbytefmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfmt%2Fbytefmt/lists"}