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 ¶
func CheckAndPanic(err error)
func ReadAllLogContent ¶
读取所有日志 return map(k: 文件名 v: 文件内容) todo: 根据投票情况考虑时候添加日志上传功能
func Setup ¶
func Setup(actions ...SettingsAction) error
func ShowGuiMsg ¶
func ShowGuiMsg(title, message string)
Types ¶
type SettingsAction ¶
func SetDebugMode ¶
func SetDebugMode(isDebugMode bool) SettingsAction
func SetOutput ¶
func SetOutput(path string, isOneFile bool) SettingsAction
Click to show internal directories.
Click to hide internal directories.