safeio

package
v0.0.0-...-e0b5347 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotAllowed = errors.New("safeio: operation not allowed")

Functions

func OpenFile

func OpenFile(r *rt.Runtime, name string, flag int, perm fs.FileMode) (*os.File, error)

func RemoveFile

func RemoveFile(r *rt.Runtime, name string) error

func RenameFile

func RenameFile(r *rt.Runtime, oldName, newName string) error

func TempFile

func TempFile(r *rt.Runtime, dir string, pattern string) (*os.File, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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