Package intern lets you make smaller comparable values by boxing a larger comparable value (such as a string header) down into a single globally unique pointer.
Docs: https://pkg.go.dev/go4.org/intern
This package is mature and stable. However, it depends on the implementation details of the Go runtime. Use with care.
This package is a core, low-level package with no substantive dependencies.
We take code review, testing, dependencies, and performance seriously, similar to Go's standard library or the golang.org/x repos.
Package intern was initially created for package inet.af/netaddr.
263 followers · starred Nov 2021
198 followers · starred May 2023
681 followers · starred Mar 2021
455 followers · starred Dec 2020
Package intern lets you make smaller comparable values by boxing a larger comparable value (such as a string header) down into a single globally unique pointer.
Docs: https://pkg.go.dev/go4.org/intern
This package is mature and stable. However, it depends on the implementation details of the Go runtime. Use with care.
This package is a core, low-level package with no substantive dependencies.
We take code review, testing, dependencies, and performance seriously, similar to Go's standard library or the golang.org/x repos.
Package intern was initially created for package inet.af/netaddr.
263 followers · starred Nov 2021
198 followers · starred May 2023
681 followers · starred Mar 2021
455 followers · starred Dec 2020