Documentation
¶
Index ¶
- Variables
- func BridgeXExpHandler(handler slog.Handler) xlog.Handler
- func BridgeXExpLogger(handler slog.Handler) *xlog.Logger
- func CheckDuplicate[T comparable](slice []T) []T
- func DefaultDir(name string) string
- func EnsureDirExist(name string) error
- func FileOrPathExist(filename string) bool
- func PrintHeadInfo()
- func RemoveDuplicate[T comparable](slice []T) []T
- func StartSelfUpdate(uri string, skipFunc func() bool)
- func VersionInfo() string
Constants ¶
This section is empty.
Variables ¶
var ( Version = "v0.0.0" GitUrl = "https://github.com/xmapst/taskflow.git" GitBranch = "main" GitCommit string BuildTime string UserName = "xmapst" UserEmail = "xmapst@gmail.com" )
Functions ¶
func BridgeXExpHandler ¶
BridgeXExpHandler 把标准库的 handler 包成 x/exp/slog 的 handler, 供已经持有 *xlog.Logger 的场合替换其下游。
func BridgeXExpLogger ¶
BridgeXExpLogger 把标准库的 handler 包成 x/exp/slog 的 logger。
func CheckDuplicate ¶
func CheckDuplicate[T comparable](slice []T) []T
func DefaultDir ¶
func EnsureDirExist ¶
func FileOrPathExist ¶
func PrintHeadInfo ¶
func PrintHeadInfo()
func RemoveDuplicate ¶
func RemoveDuplicate[T comparable](slice []T) []T
func StartSelfUpdate ¶
StartSelfUpdate checks for releases every 30 minutes and skips replacement while skipFunc reports that the service is busy.
func VersionInfo ¶
func VersionInfo() string
Types ¶
This section is empty.