net - ActiveState ActiveGo 1.8
...

Package net

import "github.com/micro/misc/lib/net"
Overview
Index

Overview ▾

func Listen

func Listen(addr string, fn func(string) (net.Listener, error)) (net.Listener, error)

Listen takes addr:portmin-portmax and binds to the first available port Example: Listen("localhost:5000-6000", fn)