a4a9b7e934
This is the new style for build tags. The old +build format is deprecated.
14 lines
154 B
Go
14 lines
154 B
Go
//go:build go1.16
|
|
// +build go1.16
|
|
|
|
package soju
|
|
|
|
import (
|
|
"errors"
|
|
"net"
|
|
)
|
|
|
|
func isErrClosed(err error) bool {
|
|
return errors.Is(err, net.ErrClosed)
|
|
}
|