Use net.SplitHostPort instead.