Documentation ¶
Index ¶
- func Conversion(c ByteConversion, s string) string
- func GetNow() (now string)
- func GetYear() int
- type Byte
- type ByteConversion
- type File
- func (f File) BufioFile(name string) (n, w int, s string, err error)
- func (f File) CopyFile(source, target string) (w int64, err error)
- func (f File) CreateFile(name string) (file *os.File, err error)
- func (f File) CreateFolder(name string) (err error)
- func (f File) GetFileInfo(name string) (m map[string]interface{}, err error)
- func (f File) IoutilFile(name string) (n, w int, s string, err error)
- func (f File) RuleFile(name string) (n, w int, s string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ByteConversion ¶
type ByteConversion interface {
// contains filtered or unexported methods
}
字节换算接口
type File ¶
type File struct { }
文件操作空结构体
func (File) CreateFile ¶
创建文件,并返回文件句柄、反馈信息。
func (File) GetFileInfo ¶
获取文件(夹)各项信息:名称、大小、创建时间、最后写入时间、最后打开时间,以及反馈信息。
func (File) IoutilFile ¶
小文件打开(无缓冲),并获取文件大小、字数,内容,以及反馈信息
Click to show internal directories.
Click to hide internal directories.