You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Angular units are missing from the extensive list of units this library already supports. I plan to submit a PR adding support for that category of units.
I saw in #19 there was an example of how to add units, but that link is unfortunately broken. From my looking around my understanding is that I would call NewUnit() and that registers the new unit with the list of supported units. Likewise with NewRatioConversion() for conversions.
I will use volume_units.go and volume_units_test.go as templates for implementing the new units.
Is that a sound plan?
The text was updated successfully, but these errors were encountered:
Great Library!
Angular units are missing from the extensive list of units this library already supports. I plan to submit a PR adding support for that category of units.
I saw in #19 there was an example of how to add units, but that link is unfortunately broken. From my looking around my understanding is that I would call
NewUnit()
and that registers the new unit with the list of supported units. Likewise withNewRatioConversion()
for conversions.I will use
volume_units.go
andvolume_units_test.go
as templates for implementing the new units.Is that a sound plan?
The text was updated successfully, but these errors were encountered: