mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
15 lines
156 B
V
15 lines
156 B
V
module filelock
|
|
|
|
pub struct FileLock {
|
|
name string
|
|
mut:
|
|
fd int
|
|
}
|
|
|
|
pub fn new(fileName string) FileLock {
|
|
return FileLock{
|
|
name: fileName
|
|
fd: -1
|
|
}
|
|
}
|