Documentation
¶
Index ¶
- Constants
- func Register(packageName string)
- type IOComponent
- func (io *IOComponent) CreateFile(ft folderType, fileName string)
- func (io *IOComponent) IsExist(ft folderType, fileName string) bool
- func (io *IOComponent) Mkdir(ft folderType, folder string) error
- func (io *IOComponent) ReadFromFile(ft folderType, fileName string) string
- func (io *IOComponent) RemoveFile(ft folderType, fileName string)
- func (io *IOComponent) SetPackageName(packageName string)
- func (io *IOComponent) WriteToFile(ft folderType, fileName string, text string) error
Constants ¶
View Source
const ( Config folderType = 0 Cache folderType = 1 AppData folderType = 2 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IOComponent ¶
type IOComponent struct {
// contains filtered or unexported fields
}
func (*IOComponent) CreateFile ¶
func (io *IOComponent) CreateFile(ft folderType, fileName string)
func (*IOComponent) IsExist ¶
func (io *IOComponent) IsExist(ft folderType, fileName string) bool
func (*IOComponent) Mkdir ¶
func (io *IOComponent) Mkdir(ft folderType, folder string) error
func (*IOComponent) ReadFromFile ¶
func (io *IOComponent) ReadFromFile(ft folderType, fileName string) string
func (*IOComponent) RemoveFile ¶
func (io *IOComponent) RemoveFile(ft folderType, fileName string)
func (*IOComponent) SetPackageName ¶
func (io *IOComponent) SetPackageName(packageName string)
func (*IOComponent) WriteToFile ¶
func (io *IOComponent) WriteToFile(ft folderType, fileName string, text string) error
Click to show internal directories.
Click to hide internal directories.