File

package
v0.0.0-...-7e13a3b Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var W = library{
	Check: Check.New(),
	Path:  Path.New(),
	GoFmt: GoFmt.New(),
}

Functions

This section is empty.

Types

type File

type File 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格式并写文件
}

func New

func New() File

Jump to

Keyboard shortcuts

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