Skip to content

Conversation

@edwarnicke
Copy link

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 [email protected]

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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant