Documentation ¶
Overview ¶
Package releasable allows process-wide tracking of objects that need to be released.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Created ¶
func Created(kind ItemKind, itemID interface{})
Created should be called whenever an item is created. If tracking is enabled, it captures the stack trace of the current goroutine and stores it in a map.
func DisableTracking ¶
func DisableTracking(kind ItemKind)
DisableTracking disables tracking of the given item type.
func EnableTracking ¶
func EnableTracking(kind ItemKind)
EnableTracking enables tracking of the given item type.
Types ¶
Click to show internal directories.
Click to hide internal directories.