Documentation
¶
Overview ¶
Package runtimeutil provides wrapper to get caller, stack etc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCallerFrame ¶
see https://github.com/dyweb/gommon/issues/32 based on https://github.com/go-stack/stack/blob/master/stack.go#L29:51 TODO: not sure if calling two Next without checking the more value works for other go version
func SplitPackageFunc ¶
SplitPackageFunc returns package (w/o GOPATH) and function (w/ struct if presented) based on runtime.Frame.Function Copied from runtime.Frame struct documentation Func may be nil for non-Go code or fully inlined functions If Func is not nil then Function == Func.Name() github.com/dyweb/gommon/log2/_examples/uselib/service.(*Auth).Check github.com/dyweb/gommon/log2.TestNewIdentityFromCaller
func SplitStructMethod ¶
Types ¶
This section is empty.