From 657430fe1ec83ab7554cef04b1d774b4cfe0dae5 Mon Sep 17 00:00:00 2001 From: Ben Haines Date: Fri, 1 Mar 2019 14:25:53 -0500 Subject: [PATCH] Update type.go --- type.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/type.go b/type.go index d9f9a4b..9f5d6d6 100644 --- a/type.go +++ b/type.go @@ -63,6 +63,9 @@ func NullString() **string { } func Strings(v []string) *[]string { + if v == nil { + v = []string{} + } return &v }