soju/net_go113.go
2021-05-20 00:07:44 +02:00

12 lines
181 B
Go

// +build !go1.16
package soju
import (
"strings"
)
func isErrClosed(err error) bool {
return err != nil && strings.Contains(err.Error(), "use of closed network connection")
}