Documentation
¶
Index ¶
- Variables
- func CmdPath() string
- func EmitError(n int, msg string)
- func ErrorHandler(err ErrorMessage)
- 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 (
MessageList []ErrorMessage
)
Functions ¶
func ErrorHandler ¶
func ErrorHandler(err ErrorMessage)
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.