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

15 lines
156 B
V
Raw Normal View History

module filelock
pub struct FileLock {
name string
mut:
fd int
}
pub fn new(fileName string) FileLock {
return FileLock{
name: fileName
fd: -1
}
}