aboutsummaryrefslogtreecommitdiff
path: root/string_slice.go
diff options
context:
space:
mode:
Diffstat (limited to 'string_slice.go')
-rw-r--r--string_slice.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/string_slice.go b/string_slice.go
index 51e3c5d..7829cfa 100644
--- a/string_slice.go
+++ b/string_slice.go
@@ -66,7 +66,7 @@ func (s *stringSliceValue) String() string {
}
func stringSliceConv(sval string) (interface{}, error) {
- sval = strings.Trim(sval, "[]")
+ sval = sval[1 : len(sval)-1]
// An empty string would cause a slice with one (empty) string
if len(sval) == 0 {
return []string{}, nil