fileutil

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

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileMgr

type FileMgr struct {
	// contains filtered or unexported fields
}

operate file should be only one way

func (*FileMgr) CheckFileContainsChar

func (f *FileMgr) CheckFileContainsChar(filename, s string) bool

check char exist file

func (*FileMgr) CreateDir

func (f *FileMgr) CreateDir(path string) bool

build dir

func (*FileMgr) CreateFile

func (f *FileMgr) CreateFile(path string) bool

create file

func (*FileMgr) GenerateDir

func (f *FileMgr) GenerateDir(path string) (string, error)

create dir

func (*FileMgr) IsDir

func (f *FileMgr) IsDir(path string) bool

check dir path is right?

func (*FileMgr) IsDirOrFileExist

func (f *FileMgr) IsDirOrFileExist(path string) bool

check exist path

func (*FileMgr) IsFile

func (f *FileMgr) IsFile(fileName string) bool

check file name is file?

func (*FileMgr) ReadFile

func (f *FileMgr) ReadFile(fileName string) string

func (*FileMgr) WriteFile

func (f *FileMgr) WriteFile(fileName, d string) (int, error)

write data to file

func (*FileMgr) WriteFileAppend

func (f *FileMgr) WriteFileAppend(fileName, d string) (count int, err error)

write data to file by append modern

Jump to

Keyboard shortcuts

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