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 }