From 1dc86f76fe10fff84fe1f62e3e64969b7c2877f2 Mon Sep 17 00:00:00 2001 From: Rangel Reale Date: Mon, 16 Dec 2024 10:26:34 -0300 Subject: [PATCH] expr constants --- value.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/value.go b/value.go index 646298d..9b9464b 100644 --- a/value.go +++ b/value.go @@ -1,6 +1,8 @@ package panyl -import "strconv" +import ( + "strconv" +) // MapValue is a helper for handling map[string]any type MapValue map[string]any @@ -109,6 +111,8 @@ func (m MapValue) ListValue(name string) []string { v, ok := m[name] if ok { switch vv := v.(type) { + case string: + return []string{vv} case []string: return vv }