1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/os/filelock/lib.v
2021-08-17 08:21:33 +03:00

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
}
}