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

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