This program demonstrates the behavior of Go's net.SplitHostPort
function with various input cases.
The net.SplitHostPort
function splits a network address into host and port components. This program tests the function with:
- Standard cases: Regular hostnames and IP addresses with ports
- IPv6 cases: IPv6 addresses properly bracketed