Documentation ¶
Overview ¶
Package fmsg provides various functions for output messages.
Index ¶
- func AsBaseError(err error, target **BaseError) bool
- func Exit(code int)
- func Fatal(v ...any)
- func Fatalf(format string, v ...any)
- func Print(v ...any)
- func Printf(format string, v ...any)
- func Println(v ...any)
- func Resume()
- func SetPrefix(prefix string)
- func SetVerbose(v bool)
- func Suspend()
- func VPrintf(format string, v ...any)
- func VPrintln(v ...any)
- func Verbose() bool
- func WrapError(err error, a ...any) error
- func WrapErrorFunc(err error, f func(err error) string) error
- func WrapErrorSuffix(err error, a ...any) error
- type BaseError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsBaseError ¶
func SetVerbose ¶ added in v0.0.8
func SetVerbose(v bool)
func WrapErrorFunc ¶
WrapErrorFunc wraps an error with a corresponding message returned by f.
func WrapErrorSuffix ¶
WrapErrorSuffix wraps an error with a corresponding message with err at the end of the message.
Types ¶
Click to show internal directories.
Click to hide internal directories.