From a source I cannot influence I am given data in a map, which arrives as map[interface {}]interface {}
.
I need to process the contained data, preferably as map[string]string
(the data within is perfectly suitable for that).
I need to generate a list of the keys from the data as well, as those are not known beforehand.
Most similar questions I could find on the web say more or less, that this is impossible, but if my map is m
, fmt.Println(m)
shows the data is there, readable as map[k0:v0 K1:v1 k2:v2 ... ]
.
How can I do what fmt.Println is able to do?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…