Skip to content

Commit

Permalink
expr constants
Browse files Browse the repository at this point in the history
  • Loading branch information
RangelReale committed Dec 16, 2024
1 parent 8dbc0d0 commit 1dc86f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion value.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package panyl

import "strconv"
import (
"strconv"
)

// MapValue is a helper for handling map[string]any
type MapValue map[string]any
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 1dc86f7

Please sign in to comment.