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
Sometimes we write code that encapsulates resolving localhost and the output of that code contains the resolved localhost address - which tends to vary depending on if/how IPv6 is configured. One environment may produce 127.0.0.1 while another [::1].
A helper like Localhost(t *testing.T, s string) would be the most basic form, but there also tends to be cases where we want to include a port, and some cases with a protocol.
The text was updated successfully, but these errors were encountered:
Sometimes we write code that encapsulates resolving
localhost
and the output of that code contains the resolvedlocalhost
address - which tends to vary depending on if/how IPv6 is configured. One environment may produce127.0.0.1
while another[::1]
.A helper like
Localhost(t *testing.T, s string)
would be the most basic form, but there also tends to be cases where we want to include a port, and some cases with a protocol.The text was updated successfully, but these errors were encountered: