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, 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 ReadDir(dirname string) ([]string, 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 ¶
EsimRecoverFile recover file from os.Getenv("GOPATH") + "/pkg/esim/backup/".
func GetCurrentDir ¶
func GetCurrentDir() string
func GetGoProPath ¶
func GetGoProPath() string
func IsEmptyDir ¶
func IsExistsDir ¶
func IsExistsFile ¶
Types ¶
type EsimWriter ¶
type EsimWriter struct{}
func (*EsimWriter) Write ¶
func (ew *EsimWriter) Write(outFile, content string) error
type IfaceWriter ¶
func NewErrWrite ¶
func NewErrWrite(nilNum int) IfaceWriter
func NewEsimWriter ¶
func NewEsimWriter() IfaceWriter
func NewNullWrite ¶
func NewNullWrite() IfaceWriter
Click to show internal directories.
Click to hide internal directories.