Source file src/os/example_other_test.go
1 // Copyright 2026 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 7 package os_test 8 9 import ( 10 "errors" 11 ) 12 13 // isOSSymlinkUnsupportedError returns true when err is an error 14 // returned by os.Symlink when symlinks are unsupported by OS. 15 func isOSSymlinkUnsupportedError(err error) bool { 16 return errors.Is(err, errors.ErrUnsupported) 17 } 18