iotools

package
v2.1.6+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SafeFile

type SafeFile struct {
	*os.File
	// contains filtered or unexported fields
}

func CreateSafeFile

func CreateSafeFile(name string) (file *SafeFile, err error)

func OpenSafeFile

func OpenSafeFile(name string) (file *SafeFile, err error)

func (*SafeFile) Close

func (sf *SafeFile) Close() error

func (*SafeFile) FilePath

func (sf *SafeFile) FilePath() string

func (*SafeFile) ReOpen

func (sf *SafeFile) ReOpen() error

func (*SafeFile) SetFilePath

func (sf *SafeFile) SetFilePath(filePath string) *SafeFile

func (*SafeFile) Sync

func (sf *SafeFile) Sync() error

func (*SafeFile) WriteAt

func (sf *SafeFile) WriteAt(b []byte, off int64) (n int, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL