os

package
v0.0.0-...-f6a5026 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Stderr        = os.Stderr
	Stdin         = os.Stdin
	Stdout        = os.Stdout
	ModePerm      = os.ModePerm
	UserConfigDir = os.UserConfigDir
	UserHomeDir   = os.UserHomeDir
	System        = runtime.GOOS
)

Functions

func Exit

func Exit(code int)

func MkdirAll

func MkdirAll(path string, perm os.FileMode) error

func ReadFile

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

func RemoveAll

func RemoveAll(path string) error

func WriteFile

func WriteFile(filename string, data []byte, perm os.FileMode) error

Types

type File

type File = os.File

type FsAccess

type FsAccess interface {
	MkdirAll(string, os.FileMode) error
	WriteFile(string, []byte, os.FileMode) error
	ReadFile(string) ([]byte, error)
	RemoveAll(string) error
}

func Set

func Set(f FsAccess) FsAccess

Jump to

Keyboard shortcuts

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