From 2719b7b973852436f3e6e736bbec3643563d1d83 Mon Sep 17 00:00:00 2001 From: Ramzi Talhouk Date: Tue, 24 Oct 2023 16:57:05 -0400 Subject: [PATCH] Fix parseToStrings empty case --- field.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/field.go b/field.go index 722d149..9311bb1 100644 --- a/field.go +++ b/field.go @@ -378,6 +378,10 @@ func (f *Field) parseString(value string) (any, error) { } func (f *Field) parseToStrings(value string) []string { + if value == "" { + return []string{} + } + list := strings.Split(value, ",") values := make([]string, len(list))