package
0.0.0-20220214151720-7585b01ddccf
Repository: https://github.com/inetaf/netstack.git
Documentation: pkg.go.dev

# Functions

FormatStack converts the given stack into a readable format.
GetLeakMode returns the current leak mode.
NewWeakRef acquires a weak reference for the given object.
OnExit is called on sandbox exit.
RecordStack constructs and returns the PCs on the current stack.
SetLeakMode configures the reference leak checker.

# Constants

LeaksLogTraces indicates that a trace collected during allocation should be logged when leaks are found.
LeaksLogWarning indicates that a warning should be logged when leaks are found.
NoLeakChecking indicates that no effort should be made to check for leaks.
UninitializedLeakChecking indicates that the leak checker has not yet been initialized.

# Structs

AtomicRefCount keeps a reference count using atomic operations and calls the destructor when the count reaches zero.
WeakRef is a weak reference.

# Interfaces

RefCounter is the interface to be implemented by objects that are reference counted.
A WeakRefUser is notified when the last non-weak reference is dropped.

# Type aliases

LeakMode configures the leak checker.