osUtil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: GPL-3.0 Imports: 10 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile added in v0.0.29

func CopyFile(dst, src string) (err error)

func Create

func Create(fileName string) (file *os.File)

func FS2Array added in v0.2.0

func FS2Array(file fs.File) []string

func FS2MapArray added in v0.2.0

func FS2MapArray(file fs.File, sep string, skip *regexp.Regexp) ([]map[string]string, []string)

func FileEmpty added in v0.0.49

func FileEmpty(fileName string) bool

check if a file is exists and empty

func FileExists added in v0.0.29

func FileExists(fileName string) bool

FileExists check if a file exists and is not a directory

func Hostname added in v0.0.21

func Hostname() string

func Open added in v0.0.11

func Open(fileName string) *os.File

func OpenFS added in v0.2.0

func OpenFS(fileName, dirName string, fs embed.FS) fs.File
func Symlink(source, dest string) error

func Write

func Write(file *os.File, b []byte) int

func WriteClose

func WriteClose(file *os.File, b []byte) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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