os

package
v1.49.5 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: OSL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Args        = os.Args
	Link        = os.Link
	Open        = os.Open
	ReadFile    = os.ReadFile
	Stat        = os.Stat
	Stderr      = os.Stderr
	Stdout      = os.Stdout
	UserHomeDir = os.UserHomeDir
)

Functions

func Create

func Create(name string) (*os.File, error)

func Rename

func Rename(old_path, new_path string) error

func WriteFile

func WriteFile(name string, data []byte) error

Types

type Cleaner added in v1.48.5

type Cleaner struct {
	// contains filtered or unexported fields
}

func Clean added in v1.48.5

func Clean(dir, file string) Cleaner

func (Cleaner) Create added in v1.48.5

func (c Cleaner) Create() (*os.File, error)

type File added in v1.48.8

type File = os.File

type Progress

type Progress struct {
	// contains filtered or unexported fields
}

func Progress_Bytes

func Progress_Bytes(dst io.Writer, bytes int64) *Progress

func Progress_Chunks

func Progress_Chunks(dst io.Writer, chunks int) *Progress

func (*Progress) Add_Chunk

func (p *Progress) Add_Chunk(bytes int64)

func (*Progress) Write

func (p *Progress) Write(buf []byte) (int, error)

Jump to

Keyboard shortcuts

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