The Go programming language (Golang) supports the use of weak pointers.
NOT BSTOTAL BS
HARDLY BS — Verdict: Mostly True
Verified by Lenz ·
The Short Version
Go does support weak pointers as of version 1.24, released in February 2025, through the public standard-library package `weak`. Official release notes, the Go blog, and package documentation all confirm this feature. However, the claim omits that the `weak` package is explicitly labeled experimental, meaning its API may change in future releases, and that weak pointers were not available in earlier Go versions.
Caveats
The `weak` package is marked as experimental in Go 1.24, meaning its API and semantics may change or be removed in future releases.
Weak pointers are a Go 1.24+ feature; they were not available in earlier versions, and older Go documentation (e.g., the 'NoWeakRef' wiki page) explicitly stated Go did not support them.
This is a standard-library/runtime feature, not a core language construct — 'support' here means an official package, not a language keyword or built-in type.