From 6a5e6d07531f75ec500dc18b05ea98d602aaee9e Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Sun, 8 Mar 2020 13:47:21 -0500 Subject: [PATCH] forgot to add utils file --- util.go | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 util.go diff --git a/util.go b/util.go new file mode 100644 index 0000000..c0c3b18 --- /dev/null +++ b/util.go @@ -0,0 +1,7 @@ +package lifx + +func StringPtr(v string) *string { return &v } +func Float64Ptr(v float64) *float64 { return &v } +func Float32Ptr(v float32) *float32 { return &v } +func IntPtr(v int) *int { return &v } +func Int16Ptr(v int16) *int16 { return &v }