Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting things other than bytes #37

Open
3tilley opened this issue Dec 13, 2023 · 0 comments
Open

Formatting things other than bytes #37

3tilley opened this issue Dec 13, 2023 · 0 comments

Comments

@3tilley
Copy link

3tilley commented Dec 13, 2023

How do you feel about this library being used to format things other than bytes? In my case I'd like just to get unitless sizes, (like cycles) or even supply my own (like Pascals).

I think it could be done by updating the FormatSizeOptions struct to allow unit_string or similar to be passed in. If you think you're happy with the idea, I could look into how to implement it?

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

No branches or pull requests

1 participant