Documentation
¶
Index ¶
- Variables
- func CmdPath() string
- func EmitError(n int, msg string)
- func ErrorHandler(err ErrorMessage)
- func ExecuteCommand(command string) int
- func ExecuteCommandResult(command string) string
- func ExecuteCommandSilent(command string) int
- func ExecuteCommandSilentResult(command string) string
- func ExecutePath() string
- func FileLogger(src string)
- 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 Recover(errorHandler func(ErrorMessage))
- func SetAppend(set map[string]struct{}, files []string)
- type ErrorMessage
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RootPath = CmdPath() ProcessPath = ExecutePath() )
View Source
var (
CreateCommand func(command string) *exec.Cmd
)
View Source
var (
MessageList []ErrorMessage
)
Functions ¶
func ErrorHandler ¶
func ErrorHandler(err ErrorMessage)
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 ExecutePath ¶
func ExecutePath() string
func FileLogger ¶
func FileLogger(src string)
func NewDebounce ¶
func NewThrottle ¶
func Recover ¶
func Recover(errorHandler func(ErrorMessage))
Types ¶
type ErrorMessage ¶
Click to show internal directories.
Click to hide internal directories.