source: code/trunk/net_go113.go@ 805

Last change on this file since 805 was 804, checked in by koizumi.aoi, 2 years ago

Drunk as I like

Signed-off-by: Aoi K <koizumi.aoi@…>

File size: 201 bytes
Line 
1//go:build !go1.16
2// +build !go1.16
3
4package suika
5
6import (
7 "strings"
8)
9
10func 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.