gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/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  //go:build !windows
     6  // +build !windows
     7  
     8  package testenv
     9  
    10  import (
    11  	"runtime"
    12  )
    13  
    14  func hasSymlink() (ok bool, reason string) {
    15  	switch runtime.GOOS {
    16  	case "android", "plan9":
    17  		return false, ""
    18  	}
    19  
    20  	return true, ""
    21  }