Versions in this module Expand all Collapse all v0 v0.37.1 Jun 6, 2022 v0.37.0 Jun 6, 2022 Changes in this version + func CopyDirs(src, dest string) error + func DirSize(dir string) (int64, error) + func Fdatasync(f *os.File) error + func OpenDir(path string) (*os.File, error) + func Preallocate(f *os.File, sizeInBytes int64, extendFile bool) error + func Rename(from, to string) error + func Replace(from, to string) error + type MmapFile struct + func OpenMmapFile(path string) (*MmapFile, error) + func OpenMmapFileWithSize(path string, size int) (mf *MmapFile, retErr error) + func (f *MmapFile) Bytes() []byte + func (f *MmapFile) Close() error + func (f *MmapFile) File() *os.File + type Releaser interface + Release func() error + func Flock(fileName string) (r Releaser, existed bool, err error)