Documentation ¶
Index ¶
- func GetParentPath(path string) string
- func IsDirExists(path string) bool
- func IsFileExists(path string) bool
- func ReadAsMap(filePath string) (kvs map[string]string, err error)
- func ReadPropertiesAsMap(propertiesFile string) (kvs map[string]string, err error)
- func ReadYamlAsMap(yamlFile string) (kvs map[string]string, err error)
- func ScanParent(path string, consumer func(parent *FileInfo) (stop bool)) error
- type FileInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetParentPath ¶
* 获取给定路径的上级目录路径,返回的上级目录中,不包含 / 结尾 实例: /data/web/log --> /data/web E:\data\web\log --> E:\data\web / --> "" /data --> ""
func ReadPropertiesAsMap ¶
* 读取配置
func ReadYamlAsMap ¶
* 将 Yaml 文件读取出来,作为 key value 格式
Types ¶
Click to show internal directories.
Click to hide internal directories.