golang.org/x/tools/gopls@v0.15.3/internal/test/integration/fake/workdir_windows.go (about) 1 // Copyright 2021 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 fake 6 7 import ( 8 "errors" 9 "syscall" 10 ) 11 12 func init() { 13 // constants copied from GOROOT/src/internal/syscall/windows/syscall_windows.go 14 const ( 15 ERROR_LOCK_VIOLATION syscall.Errno = 33 16 ) 17 18 isWindowsErrLockViolation = func(err error) bool { 19 return errors.Is(err, ERROR_LOCK_VIOLATION) 20 } 21 }