Created
December 5, 2022 10:40
-
-
Save ukiahsmith/b25884b4a741f7075bc796b663557a1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package point | |
// Pointer turns any value into a pointer to that value | |
func Pointer[T any](v T) *T { | |
return &v | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment