github.com/riscv/riscv-go@v0.0.0-20200123204226-124ebd6fcc8e/src/internal/testenv/testenv_notwin.go (about)

     1  // Copyright 2016 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  // +build !windows
     6  
     7  package testenv
     8  
     9  import (
    10  	"runtime"
    11  )
    12  
    13  func hasSymlink() (ok bool, reason string) {
    14  	switch runtime.GOOS {
    15  	case "android", "nacl", "plan9":
    16  		return false, ""
    17  	}
    18  
    19  	return true, ""
    20  }