Documentation ¶
Index ¶
- func InjectMiniFile(s *MiniFile)
- func LoadMiniFile() baseiface.ISingleton
- type MiniFile
- func (this *MiniFile) CfgEnvFile() string
- func (this *MiniFile) CheckConfigFileExist(root, f string) bool
- func (this *MiniFile) CheckFileExist(filename string) bool
- func (this *MiniFile) ConfigFile() string
- func (this *MiniFile) ConfigPath() string
- func (this *MiniFile) FindBasePkg() string
- func (this *MiniFile) FindFiles(rootdir string, suffix string) ([]string, error)
- func (this *MiniFile) FindRoot(curpath, filename string) string
- func (this *MiniFile) FindRootDir() string
- func (this *MiniFile) GetCurPath() string
- func (this *MiniFile) SetCfgEnvFile(cfgEnvFile string)
- func (this *MiniFile) SetConfigFile(configFile string)
- func (this *MiniFile) SetConfigPath(configPath string)
- func (this *MiniFile) TryFileExist(filename string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectMiniFile ¶
func InjectMiniFile(s *MiniFile)
func LoadMiniFile ¶
func LoadMiniFile() baseiface.ISingleton
Types ¶
type MiniFile ¶
type MiniFile struct { basedto.BaseEntitySingle `json:"-"` metafile.MetaFile RootDir string `json:"rootDir,omitempty"` // contains filtered or unexported fields }
func NewMiniFile ¶
func NewMiniFile() *MiniFile
func (*MiniFile) CfgEnvFile ¶
func (*MiniFile) CheckConfigFileExist ¶
func (*MiniFile) CheckFileExist ¶
func (*MiniFile) ConfigFile ¶
func (*MiniFile) ConfigPath ¶
func (*MiniFile) FindRootDir ¶
func (*MiniFile) GetCurPath ¶
func (*MiniFile) SetCfgEnvFile ¶
func (*MiniFile) SetConfigFile ¶
func (*MiniFile) SetConfigPath ¶
func (*MiniFile) TryFileExist ¶
Click to show internal directories.
Click to hide internal directories.