github.com/m4gshm/gollections@v0.0.13-0.20240331203319-a34a86e58a24/convert/ptr/api.go (about)

     1  // Package ptr provides value, pointer convert helpers
     2  package ptr
     3  
     4  import "github.com/m4gshm/gollections/convert"
     5  
     6  // Of is value-to-pointer conversion helper
     7  func Of[T any](t T) *T {
     8  	return convert.Ptr(t)
     9  }