Documentation ¶
Index ¶
- func CheckAndPanic(err error)
- func Debug(f string, s ...any)
- func Disable()
- func Err(err error)
- func IsDebug() bool
- func ReadAllLogContent() (logMap sync.Map)
- func Setup(actions ...SettingsAction) error
- func ShowGuiMsg(title, message string)
- func Var(f string, s ...any)
- type Settings
- type SettingsAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAndPanic ¶ added in v0.0.3
func CheckAndPanic(err error)
func ReadAllLogContent ¶
读取所有日志 return map(k: 文件名 v: 文件内容) todo: 根据投票情况考虑时候添加日志上传功能
func Setup ¶ added in v0.0.3
func Setup(actions ...SettingsAction) error
func ShowGuiMsg ¶ added in v0.0.2
func ShowGuiMsg(title, message string)
Types ¶
type SettingsAction ¶ added in v0.0.3
func SetDebugMode ¶ added in v0.0.3
func SetDebugMode(isDebugMode bool) SettingsAction
func SetMuteMode ¶ added in v0.0.3
func SetMuteMode(isEnabledMute bool) SettingsAction
仅必要输出 var/err
func SetOutput ¶ added in v0.0.3
func SetOutput(path string, isOneFile bool) SettingsAction
Click to show internal directories.
Click to hide internal directories.