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
I think, the issue is in the Stringer.Scan() func, for macaddr the underlying type is net.HardwareAddr, simple type conversion is not the way to use it.
I should not have assumed that it would be able to work like this, types.Stringer as a whole probably does not work. I would probably have to create a dedicated type for it.
I wish net.HardwareAddr implemented Text or Binary Marshaler.
Getting mac address not the same I stored before.
I think, the issue is in the Stringer.Scan() func, for macaddr the underlying type is
net.HardwareAddr
, simple type conversion is not the way to use it.bob/types/marshal.go
Lines 76 to 89 in 5263402
how to reproduce:
Print results:
I also tried to insert Mac with just type conversion like this:
that leads to error
The text was updated successfully, but these errors were encountered: