github.com/slayercat/go@v0.0.0-20170428012452-c51559813f61/src/net/error_plan9_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.EPLAN9 12 13 abortedConnRequestErrors []error 14 ) 15 16 func isPlatformError(err error) bool { 17 _, ok := err.(syscall.ErrorString) 18 return ok 19 }