Documentation ¶
Index ¶
- Variables
- func AbsPath(file_ string) string
- func CopyFile(src string, dst string)
- func CreatFile(src string, data string)
- func DeleteFile(src string)
- func DisableInterpret()
- func ExecuteCommand(command string) int
- func ExecuteCommandResult(command string) string
- func ExecuteCommandSilent(command string) int
- func ExecuteCommandSilentResult(command string) string
- func IsDir(file_ string) bool
- func IsExist(file_ string) bool
- func IsFile(file_ string) bool
- func Map[T any](array []T, callback func(T) T) []T
- func NewDebounce(interval time.Duration) func(f func())
- func NewThrottle(interval time.Duration) func(f func())
- func ReadAll(src string) string
- func ReadDir(src string) ([]string, []string)
- func SetAppend(set map[string]struct{}, files []string)
- func WslPathConvent(path string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KillByname func(name string) KillByPid func(pid string) )
View Source
var ( WorkingDirectory = workingDirectory() ExecuteDirectory = executorDirectory() TempDirectory = os.TempDir() StringBuilder = strings.Builder{} )
View Source
var (
CreateCommand func(command string) *exec.Cmd
)
Functions ¶
func AbsPath ¶ added in v0.1.5
// e.g. // a.txt -> /home/xxx/a.txt // Makefile -> D:/SOFT/CODE/Makefile
func DeleteFile ¶ added in v0.1.5
func DeleteFile(src string)
func DisableInterpret ¶ added in v0.1.5
func DisableInterpret()
func ExecuteCommand ¶ added in v0.1.4
func ExecuteCommandResult ¶ added in v0.1.4
func ExecuteCommandSilent ¶ added in v0.1.4
func ExecuteCommandSilentResult ¶ added in v0.1.4
func NewDebounce ¶
func NewThrottle ¶
func WslPathConvent ¶ added in v0.1.5
cover windows path to wsl path D:\soft\code --> /mnt/d/soft/code
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.