github.com/thekondor/anyport (go): Package anyport provides with a facility to bind any available or random port to listen for TCP connection.  'Listen*()' functions bind TCP port for the address specified:  will bind port 1234 if available. When no port is specified within address argument, a random port is bound if available. E.g.  When port is specified in 'A-B' a way, first available port in [A, B] range is bound. E.g.:  will bind for listening any available port in range [123-456]. When a requested port is not available or could not be found, a corresponding error is returned.  No extra logic over standard 'Listen()' is introduced.
Keywords: go|microservices|tcp-port|tcp-server