https://github.com/ivanrad/go-weakref
🧪🥼 weak reference in Go
https://github.com/ivanrad/go-weakref
go
Last synced: 6 months ago
JSON representation
🧪🥼 weak reference in Go
- Host: GitHub
- URL: https://github.com/ivanrad/go-weakref
- Owner: ivanrad
- License: other
- Created: 2018-09-02T12:12:19.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-12-23T22:50:11.000Z (over 6 years ago)
- Last Synced: 2024-06-19T20:03:11.469Z (about 2 years ago)
- Topics: go
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 14
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# weakref
Weak reference in Go. Adapted/fixed code from: https://play.golang.org/p/f9HY6-z8Pp
This is just an experiment for educational purposes. You really should not be
using this in your code as it depends on runtime representation of [interfaces
in Go][interfaces-in-go], is super-unreliable, probably has bugs, and
yadda yadda yadda... TL;DR **Do not use this code** (or use at your own risk).
[interfaces-in-go]: https://research.swtch.com/interfaces