Documentation
¶
Index ¶
- Constants
- func DebugMode() bool
- func DumpStack(depth, skip int) string
- func Must(err error, args ...any)
- func Mustf(err error, format string, args ...any)
- func ReleaseMode() bool
- func SetMode(m Mode)
- func TestMode() bool
- func TryGet[T chan E, E any](c T) (E, bool)
- func TryPut[T chan E, E any](c T, e E) bool
- func WithLock(locker Locker, f func())
- func WithRLock(locker RWLocker, f func())
- type Locker
- type Mode
- type RWLocker
Constants ¶
View Source
const ( Debug = Mode("debug") Test = Mode("test") Release = Mode("release") )
Variables ¶
This section is empty.
Functions ¶
func Must ¶
Abort: main.main
- Location:/root/github/go-tools/xlog/example/log.go:34 +0x48e649
- Detail: xxx 123
func ReleaseMode ¶
func ReleaseMode() bool
Types ¶
Click to show internal directories.
Click to hide internal directories.