func JoinHostPort(host string, port int) string {
	return net.JoinHostPort(host, strconv.FormatInt(int64(port), 10))
}
JoinHostPort combines host and port into a network address of the
form "host:port" or, if host contains a colon or a percent sign,
"[host]:port".
package xnet
import (
	"net"
	"strconv"
)
const (
	MinPort = 0
	MaxPort = 65535
)