A collection of utility functions to work with pointers, commonly used for optional values.
go get -u github.com/cidverse/go-ptr
generics
fmt.Printf("%#v\n", ptr.Ptr("hello world"))
Primitives
fmt.Printf("%#v\n", ptr.String("hello world"))
fmt.Printf("%#v\n", ptr.Int("hello world"))
Released under the MIT license.