Documentation ¶
Index ¶
- func AppendLine(path string, line string) error
- func CurrentPath() (string, error)
- func DownloadUrl(url string) string
- func FileExist(path string) bool
- func GetExeDir() string
- func GetExeFullPath() string
- func GetExeName() string
- func InitLog() (string, error)
- func IsDir(path string) bool
- func LoadProp(path string) *properties.Properties
- func LoadYaml(yamlPath string, config interface{}) error
- func ReadLine(filename string, lineHandler func(line string, lineno int) bool)
- func ReadLines(filename string, sep string) []string
- func ResolvePath(path string) string
- func SetLogPath(logPath string)
- func SetLogPathAndPrefix(logPath string, prefix string) *os.File
- func Shuffle(ss []string)
- func WriteLine(path string, line string, append bool) error
- func WriteLines(path string, lines []string) error
- type FileFilter
- type Pair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendLine ¶
func CurrentPath ¶ added in v1.0.3
func DownloadUrl ¶
func LoadProp ¶
func LoadProp(path string) *properties.Properties
func SetLogPathAndPrefix ¶
SetLogPathAndPrefix 设置日志路径与前缀
func WriteLines ¶
Types ¶
type Pair ¶ added in v1.0.3
type Pair struct { K interface{} `yaml:"k" json:"k"` V interface{} `yaml:"v" json:"v"` }
func WalkFileList ¶ added in v1.0.3
func WalkFileList(fpath string, filter FileFilter) ([]Pair, error)
Click to show internal directories.
Click to hide internal directories.