soju/net_go116.go

14 lines
154 B
Go
Raw Normal View History

//go:build go1.16
2021-05-19 22:07:44 +00:00
// +build go1.16
package soju
import (
"errors"
"net"
)
func isErrClosed(err error) bool {
return errors.Is(err, net.ErrClosed)
}