Documentation ¶
Index ¶
- func Abs(base, path string) (string, error)
- func AppendLine(line, path string) error
- func CommandExists(cmd string) bool
- func CommentOut(path string, targetLineNo int) error
- func Exists(path string) bool
- func GetHomeDir() string
- func IsDir(path string) bool
- func IsEmpty(str string) bool
- func IsFile(path string) bool
- func IsSymlink(path string) bool
- func ReadLines(path string) ([]string, error)
- func RemoveLine(path string, targetLineNo int) error
- func ReplaceTilde(path string) string
- func RunCmd(name string, args ...string) error
- func RunCmdAndGet(name string, args ...string) ([]string, []string, error)
- func SortWithLen(arr []string) []string
- func WriteLines(lines []string, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendLine ¶ added in v0.3.1
func GetHomeDir ¶
func GetHomeDir() string
func IsSymlink ¶
シンボリックリンクかどうか 参考: https://github.com/eihigh/filetest Thanks eihigh <eihigh.contact@gmail.com>
func RemoveLine ¶ added in v0.3.0
func RunCmdAndGet ¶ added in v0.2.0
func WriteLines ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.