source:
code/trunk/net_go113.go@
818
Last change on this file since 818 was 804, checked in by , 2 years ago | |
---|---|
File size: 201 bytes |
Rev | Line | |
---|---|---|
[582] | 1 | //go:build !go1.16 |
[519] | 2 | // +build !go1.16 |
3 | ||
[804] | 4 | package suika |
[519] | 5 | |
6 | import ( | |
7 | "strings" | |
8 | ) | |
9 | ||
10 | func isErrClosed(err error) bool { | |
11 | return err != nil && strings.Contains(err.Error(), "use of closed network connection") | |
12 | } |
Note:
See TracBrowser
for help on using the repository browser.