Advisory File locking with Go

Advisory File locking with Go File Locking is generally useful in an environment where multiple applications or processes may want to access(read/write) the same file. In such cases, it becomes important to protect integrity of file data and provide consistent view of data to all the processes. This post studies only advisory file locks with Go on Unix based systems such as Linux, FreeBSD.