commit | b24b4ff690ea65c8226f7d6f1c9b7263babed03a | [log] [tgz] |
---|---|---|
author | Chance Zibolski <chance.zibolski@gmail.com> | Wed Feb 18 18:44:31 2015 -0800 |
committer | spf13 <steve.francia@gmail.com> | Tue Feb 24 12:06:34 2015 -0500 |
tree | 3763372aee12673e18e688ac0a4588e7104784b7 | |
parent | 2318c5caf29c12b280396d29a9912a0a0d616171 [diff] |
ToStringSliceE: Support string values
diff --git a/caste.go b/caste.go index d55b85b..36f6f91 100644 --- a/caste.go +++ b/caste.go
@@ -11,6 +11,7 @@ "html/template" "reflect" "strconv" + "strings" "time" jww "github.com/spf13/jwalterweatherman" @@ -292,6 +293,8 @@ return a, nil case []string: return v, nil + case string: + return strings.Split(v, " "), nil default: return a, fmt.Errorf("Unable to Cast %#v to []string", i) }