github.com/d4l3k/go@v0.0.0-20151015000803-65fc379daeda/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  
    14  func isPlatformError(err error) bool {
    15  	_, ok := err.(syscall.ErrorString)
    16  	return ok
    17  }