github.com/slayercat/go@v0.0.0-20170428012452-c51559813f61/src/net/error_windows_test.go (about) 1 // Copyright 2015 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package net 6 7 import "syscall" 8 9 var ( 10 errTimedout = syscall.ETIMEDOUT 11 errOpNotSupported = syscall.EOPNOTSUPP 12 13 abortedConnRequestErrors = []error{syscall.ERROR_NETNAME_DELETED, syscall.WSAECONNRESET} // see accept in fd_windows.go 14 ) 15 16 func isPlatformError(err error) bool { 17 _, ok := err.(syscall.Errno) 18 return ok 19 }