Documentation ¶
Overview ¶
Package location provides a way to retrieve the current location in code. This can be used in logging or monitoring. Passing an offset helps hiding calling wrappers.
l1 := location.Here() l2 := location.At(5) id := location.At(2).ID code := location.At(2).Code("ERR") stack := location.HereDeep(5)
Internal caching fastens retrieval after first call.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.