os

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package os provides some extensions over the standard os package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotExist

func IsNotExist(err error) bool

IsNotExist is a proxy to the standard os.IsNotExist

func ReadDirWithLock

func ReadDirWithLock(dirname string) ([]fs.DirEntry, error)

ReadDirWithLock reads a directory using a syscall.Flock

func ReadFileWithLock

func ReadFileWithLock(filename string) ([]byte, error)

ReadFileWithLock reads a file using a syscall.Flock

func Remove

func Remove(name string) error

Remove is a proxy to the standard os.Remove

func Stat

func Stat(name string) (os.FileInfo, error)

Stat is a proxy to the standard os.Stat

Types

type FileInfo

type FileInfo = os.FileInfo

FileInfo is an alias of the standard os.FileInfo

type FileMode

type FileMode = os.FileMode

FileMode is an alias of the standard os.FileMode

Directories

Path Synopsis
Package flock provides a wrapper around syscall.Flock
Package flock provides a wrapper around syscall.Flock

Jump to

Keyboard shortcuts

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