aboutsummaryrefslogtreecommitdiff
path: root/pkg/u/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/u/util.go')
-rw-r--r--pkg/u/util.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/u/util.go b/pkg/u/util.go
new file mode 100644
index 0000000..9706539
--- /dev/null
+++ b/pkg/u/util.go
@@ -0,0 +1,5 @@
+package u
+
+func Ptr[T any](v T) *T {
+ return &v
+}