You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just noticed, that I cannot use hasKey function on a dict created by the split or splitn functions, as they both return dicts of type map[string]string whereas most of the functions in dict.go expect a dict of type map[string]interface{}
Error: template: .... at <$mysplit>: wrong type for value; expected map[string]interface {}; got map[string]string
The text was updated successfully, but these errors were encountered:
rpasche
changed the title
Change return types of "split" and "splitn" to map[string]interface{} (instead of map[string]string
Change return types of "split" and "splitn" to map[string]interface{} (instead of map[string]string)
Apr 30, 2024
Hi,
I just noticed, that I cannot use
hasKey
function on adict
created by thesplit
orsplitn
functions, as they both returndict
s of typemap[string]string
whereas most of the functions indict.go
expect a dict of typemap[string]interface{}
The error I get is
Basically, the same error when trying to use
get
functionThe error I get is
The text was updated successfully, but these errors were encountered: