Documentation
¶
Index ¶
- func CreateDir(dir string) error
- func CreateFile(file string) (bool, error)
- func EsimBackUpFile(backFile string) error
- func EsimRecoverFile(recoverFile string) error
- func EsimWrite(filePath string, content string) error
- func GetCurrentDir() string
- func GetGoProPath() string
- func GetParDir() string
- func IsEmptyDir(dir string) (bool, error)
- func IsExistsDir(dir string) (bool, error)
- func IsExistsFile(file string) (bool, error)
- func RemoveDir(dir string) error
- type ErrWrite
- type EsimWriter
- type IfaceWriter
- type NullWrite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFile ¶
func EsimBackUpFile ¶
BackUpFile backup files to os.Getenv("GOPATH") + "/pkg/esim/backup/" backFile is Absolute path Overwrite as soon as the file exists
func EsimRecoverFile ¶ added in v0.0.5
EsimRecoverFile recover file from os.Getenv("GOPATH") + "/pkg/esim/backup/"
func GetCurrentDir ¶
func GetCurrentDir() string
func GetGoProPath ¶ added in v0.0.5
func GetGoProPath() string
func IsEmptyDir ¶
func IsExistsDir ¶
func IsExistsFile ¶
Types ¶
type EsimWriter ¶ added in v0.0.5
type EsimWriter struct{}
func (*EsimWriter) Write ¶ added in v0.0.5
func (ew *EsimWriter) Write(outFile, content string) error
type IfaceWriter ¶ added in v0.0.5
func NewErrWrite ¶ added in v0.0.5
func NewErrWrite(nilNum int) IfaceWriter
func NewEsimWriter ¶ added in v0.0.5
func NewEsimWriter() IfaceWriter
func NewNullWrite ¶ added in v0.0.5
func NewNullWrite() IfaceWriter
Click to show internal directories.
Click to hide internal directories.