ptr
Package that provide functions for simplified creation of pointers from constants of basic types
About ptr
ptr

ptr contains functions for simplified creation of pointers from constants of basic types.
Support for generics has been implemented since version 1.4.0. Required 1.18 or later version of Go.
Installation
go get github.com/gotidy/ptr
Examples
This code:
p := ptr.Of(10)
is the equivalent for:
i := int(10)
p := &i
Documentation
License
Frequently Asked Questions
What is ptr?
ptr is a Utilities library for the Go programming language. Package that provide functions for simplified creation of pointers from constants of basic types
How do I install ptr?
Install ptr with the Go module system using `go get gotidy/ptr`. Check the repository for the current installation instructions.
What category does ptr belong to?
ptr is listed under Utilities, specifically Utilities.