fs

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFilePerm

func GetFilePerm(path string) (string, error)

func IsExist

func IsExist(path string) bool

func MustOpen

func MustOpen(path string) (*os.File, error)

MustOpen if the file does not exist, create a file and open it in overwrite mode

func MustOpenWithAppend

func MustOpenWithAppend(path string) (*os.File, error)

func MustOpenWithFlag

func MustOpenWithFlag(path string, flag int) (*os.File, error)

func ReadAsBytes

func ReadAsBytes(path string) ([]byte, error)

func WriteAsBytes

func WriteAsBytes(path string, b []byte) error

WriteAsBytes will overwrite the target file

Types

This section is empty.

Jump to

Keyboard shortcuts

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