|
|
//CreateListener creates a listener either on tcp://, or local listener, supporting unix:// for unix socket or npipe:// for named pipes on windows
|
|
//CreateListener creates a listener either on tcp://, or local listener, supporting unix:// for unix socket or npipe:// for named pipes on windows
|
|
|
func CreateListener(address string) (net.Listener, error) {
|
|
func CreateListener(address string) (net.Listener, error) {
|
|
|
if strings.HasPrefix(address, "tcp://") {
|
|
if strings.HasPrefix(address, "tcp://") {
|