aboutsummaryrefslogtreecommitdiff
path: root/utils.go
diff options
context:
space:
mode:
authorFelix Hanley <felix@userspace.com.au>2020-02-09 12:17:30 +0000
committerFelix Hanley <felix@userspace.com.au>2020-02-09 12:17:30 +0000
commitd7cd138025572c59bfc4964e464d899f396b7e41 (patch)
tree02f20073402b7035b19fb343452460d763f1b293 /utils.go
parentd60cef9865eb1455ce6448e7fe46226e71a5e2f7 (diff)
downloadsws-d7cd138025572c59bfc4964e464d899f396b7e41.tar.gz
sws-d7cd138025572c59bfc4964e464d899f396b7e41.tar.bz2
Capture current staging state
Diffstat (limited to 'utils.go')
-rw-r--r--utils.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/utils.go b/utils.go
new file mode 100644
index 0000000..8e4835e
--- /dev/null
+++ b/utils.go
@@ -0,0 +1,14 @@
+package sws
+
+import "time"
+
+func ptrString(s string) *string {
+ if s == "" {
+ return nil
+ }
+ return &s
+}
+
+func ptrTime(t time.Time) *time.Time {
+ return &t
+}