soju/net_go116.go

13 lines
136 B
Go
Raw Normal View History

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