mirror of
https://github.com/rjNemo/underscore
synced 2026-06-06 02:26:42 +00:00
removing extra file
This commit is contained in:
parent
f3ba5b98b6
commit
9f63a51280
1 changed files with 0 additions and 13 deletions
13
pointer.go
13
pointer.go
|
|
@ -1,13 +0,0 @@
|
|||
package underscore
|
||||
|
||||
// Convert values to pointers
|
||||
//
|
||||
// Instead of:
|
||||
// v = "value"
|
||||
// MyPointerVar = &v
|
||||
//
|
||||
// Use:
|
||||
// MyPointerVar = ToPointer("value")
|
||||
func ToPointer[T any](in T) *T {
|
||||
return &in
|
||||
}
|
||||
Loading…
Reference in a new issue