bcicen / go-units

Go library for converting between various units of measurement
MIT License
84 stars 22 forks source link

Problem with Fmt #13

Closed jpearll closed 3 years ago

jpearll commented 3 years ago

Hi

There is a bug when I format the output of the following units:

label := units.NewValue(30, units.Minute).Fmt(units.FmtOptions{Label: true, Short: true})

the label output is

"3 min" instead of "30 min"

bcicen commented 3 years ago

Thanks for reporting this; resolved now in https://github.com/bcicen/go-units/pull/14