go/src/cmd/go/internal/lockedfile/lockedfile_filelock.go

func openFile(name string, flag int, perm fs.FileMode) (*os.File, error) {}

func closeFile(f *os.File) error {}