(k string, allowUnsafe bool)
| 93 | } |
| 94 | |
| 95 | func (h *Hints) GetStringSlice(k string, allowUnsafe bool) (v []string, ok bool) { |
| 96 | s, ok := h.Get(k, TypeString, allowUnsafe) |
| 97 | if !ok { |
| 98 | return |
| 99 | } |
| 100 | |
| 101 | // currently the syntax for array values in hints is `with(hintname=v1,v2,v3)` once we have actual |
| 102 | // array syntax in the language, we use arrays here and change the syntax to `with(hintname=[v1,v2,v3])` |
| 103 | ss := strings.Split(s.EncodeToString(false), ",") |
| 104 | return ss, true |
| 105 | } |
| 106 | |
| 107 | func (h *Hints) Get(k string, t StaticType, allowUnsafe bool) (v Static, ok bool) { |
| 108 | if h == nil { |
no test coverage detected