ioex

package
v0.0.0-...-3dffb3d Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDirectory

type IDirectory interface {
	INode

	Create() error
	FindDirectories() []IDirectory
	FindFiles() []IFile
}

IDirectory is 目录接口

type IFile

type IFile interface {
	INode

	GetExt() string
	GetFile() (*os.File, error)
	Read(data interface{}) error
	Write(data interface{}) error
}

IFile is 文件接口

type INode

type INode interface {
	GetName() string
	GetParent() IDirectory
	GetPath() string
	IsExist() bool
	Move(dstPath string) error
	Remove() error
}

INode is IO节点接口

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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