alloc Allocation and dereference package for Go. Requirements Go 1.20 and above. This package based on generics feature introduced for Go 1.18, but tested with Go 1.20 only. Example See the examples_test.go for a small example of how to use the package.