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