Skip to content

docs(bytes): FormatBinary example uses KiB not KB#65

Merged
aldas merged 1 commit into
labstack:masterfrom
sonnemusk:fix/sonnemusk-4013
Jul 23, 2026
Merged

docs(bytes): FormatBinary example uses KiB not KB#65
aldas merged 1 commit into
labstack:masterfrom
sonnemusk:fix/sonnemusk-4013

Conversation

@sonnemusk

Copy link
Copy Markdown
Contributor

Summary

Format / FormatBinary return IEC binary units (KiB, MiB, …). The package example and tests already use 30.59KiB for 31323 bytes, but the godoc still said 30.59KB.

Test plan

  • go test ./bytes/

FormatBinary returns IEC binary units (KiB/MiB/...). The godoc
example incorrectly said 30.59KB; tests already expect 30.59KiB.
@aldas
aldas merged commit 60bbdf4 into labstack:master Jul 23, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants