github.com/petermattis/pebble@v0.0.0-20190905164901-ab51a2166067/vfs/file_lock_generic.go (about) 1 // Copyright 2012 The LevelDB-Go and Pebble Authors. All rights reserved. Use 2 // of this source code is governed by a BSD-style license that can be found in 3 // the LICENSE file. 4 5 // +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows 6 7 package vfs 8 9 import ( 10 "fmt" 11 "io" 12 "runtime" 13 ) 14 15 func (defFS) Lock(name string) (io.Closer, error) { 16 return nil, fmt.Errorf("pebble: file locking is not implemented on %s/%s", 17 runtime.GOOS, runtime.GOARCH) 18 }