dustin/go-humanize ? reverse-engineered prompt
Reverse engineered prompt
Build me a small Go library called humanize that makes numbers and times easier to read in plain English.
I want helpers for formatting file sizes like 83 MB or 79 MiB, showing times in a relative way like 12 seconds ago or 3 days from now, turning numbers into ordinals like 1st and 193rd, adding commas to big numbers, and cleaning up float formatting so 2.0 becomes 2 instead of 2.000000. It should also handle SI style units like 2.23 nM.
Please include an english subpackage too, with simple plural words and full plural phrases, plus a function for joining word lists naturally with commas and conjunctions, including an Oxford comma version.
Make it feel like a polished little utility package with good tests and clear examples. If anything is ambiguous, follow the README style and current Go docs conventions, and look up current docs online if you need to.
Are you gonna build this?
make sure you review the code using coderabbit