soju/net_go113.go

13 lines
200 B
Go
Raw Normal View History

//go:build !go1.16
2021-05-19 23:07:44 +01:00
// +build !go1.16
package soju
import (
"strings"
)
func isErrClosed(err error) bool {
return err != nil && strings.Contains(err.Error(), "use of closed network connection")
}