suika/net_go113.go
contact c963aef3d1 go fmt: add go:build tags
This is the new style for build tags. The old +build format is
deprecated.

git-svn-id: file:///srv/svn/repo/suika/trunk@582 f0ae65fe-ee39-954e-97ec-027ff2717ef4
2021-09-09 08:07:37 +00:00

13 lines
200 B
Go

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