file

package
v0.0.0-...-9abeaa0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var W = library{
	// contains filtered or unexported fields
}

Functions

This section is empty.

Types

type Interface

type Interface interface {
	FileInfo() os.FileInfo                                             //FileInfoTools 返回值
	GetFileInfo(filePath string) bool                                  //获取文件信息
	WriteAppend(filePath, buf string) (ok bool)                        //循环写入buf到文件
	WriteGoFine(FileName string, buf []byte) (ok bool)                 //写go文件
	WriteFile(FileName string, obj interface{}) (ok bool)              //写文件
	JsonMarshalIndent2File(FileName string, obj interface{}) (ok bool) //序列化buf为json格式并写文件
	FileToLines(src string) (lines []string, ok bool)
}

func New

func New() Interface

Jump to

Keyboard shortcuts

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