model

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileEdit

type FileEdit struct {
	// 文件
	File *os.File
	// 文件路径
	Path string
	// 文件名
	Name string
}

FileEdit 文件编辑

func (*FileEdit) Close

func (e *FileEdit) Close()

Close 关闭文件流

func (*FileEdit) WriteByte

func (e *FileEdit) WriteByte(by []byte)

WriteByte 写入字节内容

func (*FileEdit) WriteString

func (e *FileEdit) WriteString(str string)

WriteString 写入字符串内容

func (*FileEdit) WriteStringLn

func (e *FileEdit) WriteStringLn(str string)

WriteStringLn 写入字符串内容并在之后换行

type FileInfo

type FileInfo struct {
	// 文件名
	FileName string `from:"fileName" json:"fileName"`
	// 1 是目录,0 默认文件
	IsDirectory int8 `from:"isDirectory" json:"isDirectory"`
	// 文件绝对路径
	FilePath string `json:"filePath"`
	// 修改时间
	UpdatedAt string `json:"updatedAt"`
}

FileInfo 文件信息封装

Jump to

Keyboard shortcuts

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