Documentation
¶
Overview ¶
Package runtimeutil provides runtime utilities.
Some functions are only available if debugging is enabled. Enable debugging by adding "ugorji=1" to the GODEBUG environmental variable.
Index ¶
- func BytesView(v string) []byte
- func Debug() bool
- func FileLine(calldepth uint8) (func0, file string, line int)
- func FuncFileLine(calldepth uint8) (func0, file string, line int)
- func GoroutineID() uint64
- func P(pattern string, args ...interface{})
- func PkgFuncFileLine(calldepth uint8) (subsystem, func0, file string, line int)
- func Stack(bs []byte, all bool) []byte
- func StringView(v []byte) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FuncFileLine ¶
func GoroutineID ¶
func GoroutineID() uint64
func P ¶
func P(pattern string, args ...interface{})
P printf. the message in red on the terminal. Use it in place of fmt.Printf (which it calls internally).
It also adds diagnostics: package, file, line, func:
func PkgFuncFileLine ¶
pkgFuncFileLine will return the line information.
Examples:
- func NewDriver() IN ugorji.net/ndb/driver.go subsystem: ndb file/line: driver.go func0: NewDriver
- func (*Ldb) SvrPut IN ugorji.net/ndb/server/leveldb.go subsystem: ndb/server file/line: leveldb.go func0: (*Ldb).SvrPut
- func (*Ldb) SvrPut IN github.com/ugorji/go-ndb/ndb/server/leveldb.go subsystem: ugorji/go-ndb/ndb/server file/line: leveldb.go func0: (*Ldb).SvrPut
func StringView ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.