File: net.go

package info (click to toggle)
golang-github-anacrolix-missinggo 2.1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 836 kB
  • sloc: makefile: 4
file content (7 lines) | stat: -rw-r--r-- 138 bytes parent folder | download
1
2
3
4
5
6
7
package missinggo

import "strings"

func IsAddrInUse(err error) bool {
	return strings.Contains(err.Error(), "address already in use")
}