net: Add MarshalText and UnmarshalText to HardwareAddr #10244
Closed
Labels
Comments
It's easy to make own marshaler and unmarshaler stuff, and please do so. IIRC, there's no standardized canonical form of textual representation even for IEEE stuff such as MAC-48/64, EUI-48/64. If you need to choose a format for your application, perhaps this RFC, https://tools.ietf.org/html/rfc7043, would be a help; I mean "two-digit hexadecimal numbers separated by hyphens." |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When backing up routing config to JSON, discovered IP worked correctly, but HardwareAddr did not.
I think adding MarshalText and UnmarshalText to HardwareAddr will make it more consistent with IP.
Thanks.
The text was updated successfully, but these errors were encountered: