Open edwarnicke opened 4 years ago
net.IP is defined as:
type IP []byte
prior to this PR, envconfig was interpretting that type of anything that was a slice of uint8 (including []byte) as a String.
That is the correct behavior if you really have a []uint8, but types that happen to be []uint8 should be reported as their actual type.
Signed-off-by: Ed Warnicke hagbard@gmail.com
net.IP is defined as:
type IP []byte
prior to this PR, envconfig was interpretting that type of anything that was a slice of uint8 (including []byte) as a String.
That is the correct behavior if you really have a []uint8, but types that happen to be []uint8 should be reported as their actual type.
Signed-off-by: Ed Warnicke hagbard@gmail.com