Thank you very much Ian!I am using a pointer to the map because i want to pass the map by reference, not by value.Those maps can become pretty large and are being handed down through a couple of function calls and i don't want them to be copied over and over again.
I read the document you referenced, but am not able to understand…So i can use interface{} or any just to generalize simple types?Why is the compiler accepting then a p_Values map[string]interface{} as a parameter of a function? - What would be a compatible data-type to pass as this parameter?
Hi Jan,
that looks great and is exactly what i was looking for, just need to wrap my head around that function declaration… I understand that declaration, but do not fully understand this in general. I guess i will have to do some more reading…
Thank you very much!
Hi Dan,
Thank you very much for your answer, so that's the data structure behind maps, very interesting.
I had actually thought about using unsafe pointers and then type-casting, but that is how i would have done it in the C-dekades, not with Go.