package
0.0.0-20210201173354-8cba18c2dd1c
Repository: https://github.com/ugorji/go-common.git
Documentation: pkg.go.dev
# README
go-common/runtimeutil
This repository contains the go-common/runtimeutil
library.
To install:
go get github.com/ugorji/go-common/runtimeutil
Package Documentation
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.
Exported Package API
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