News for hackers. Stuff that matters.
Re:Curious lack of sprintf scaling by olvy0 on Saturday February 26, 2022 @04:02AM (#30476217)
Yes, fmt does support printing a custom type, see:

https://fmt.dev/latest/api.html#formatting-user-defined-type...

It may look like a lot to implement, but it worked flawlessly for me several years ago for a simple case, just by copying and pasting the example code there.

There are no comments on this comment yet.