Documentation
¶
Overview ¶
Package weakref -- reference an object while still allowing it to be GC'd Adapted/fixed code from: https://play.golang.org/p/f9HY6-z8Pp This is just an experiment for education purposes. DO NOT USE.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WeakRef ¶
type WeakRef struct {
// contains filtered or unexported fields
}
WeakRef -- See https://research.swtch.com/interfaces
func NewWeakRef ¶
func NewWeakRef(v interface{}) *WeakRef
NewWeakRef -- create a new WeakRef from target object/interface{}
Click to show internal directories.
Click to hide internal directories.