lock

package
v0.0.0-...-c3cf6b7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2013 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Wrapper for github.com/tgulacsi/go-locking since it doesn't compile on windows.

On windows, returns a dummy lock that always succeeds. On other OSes, returns a *locking.FLock.

Windows also does file locking on its own, but with different semantics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileLock

type FileLock interface {
	Lock() error
	Unlock() error
}

func LockFile

func LockFile(p string) (FileLock, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL