files

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Directory

type Directory struct {
	Path string
}

func (*Directory) Create

func (dir *Directory) Create() error

func (*Directory) CreateAll

func (dir *Directory) CreateAll() error

func (*Directory) Remove

func (dir *Directory) Remove(path string) error

type File

type File struct {
	Path string
	// contains filtered or unexported fields
}

func (*File) Close

func (file *File) Close() error

func (*File) Create

func (file *File) Create() error

func (*File) Exists

func (file *File) Exists() bool

func (*File) IsDir

func (file *File) IsDir() bool

func (*File) IsFile

func (file *File) IsFile() bool

func (*File) Open

func (file *File) Open(flag int) error

func (*File) Read

func (file *File) Read() []byte

func (*File) ReadString

func (file *File) ReadString() string

func (*File) Remove

func (file *File) Remove() error

func (*File) Write

func (file *File) Write(content []byte) error

func (*File) WriteString

func (file *File) WriteString(content string) error

Jump to

Keyboard shortcuts

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