filelock

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: MulanPSL-2.0 Imports: 8 Imported by: 2

README ΒΆ

FileLock

πŸ’‘ Introduction

Read and write files with lock.

πŸ™ Acknowledgement

Documentation ΒΆ

Index ΒΆ

Constants ΒΆ

This section is empty.

Variables ΒΆ

This section is empty.

Functions ΒΆ

func Copy ΒΆ

func Copy(src, dest string) (err error)

func CopyNewtimes ΒΆ added in v0.0.5

func CopyNewtimes(src, dest string) (err error)

func Move ΒΆ

func Move(src, dest string) (err error)

func ReadFile ΒΆ

func ReadFile(filePath string) (data []byte, err error)

func Remove ΒΆ

func Remove(p string) (err error)

func RoboCopy ΒΆ

func RoboCopy(src, dest string) (err error)

func WriteFile ΒΆ

func WriteFile(filePath string, data []byte) (err error)

func WriteFileByReader ΒΆ

func WriteFileByReader(filePath string, reader io.Reader) (err error)

func WriteFileWithoutChangeTime ΒΆ

func WriteFileWithoutChangeTime(filePath string, data []byte) (err error)

Types ΒΆ

This section is empty.

Jump to

Keyboard shortcuts

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