I am trying to do a string interpolation with a variable inside a map, for a “value”. Refer value of “anotherKey” from above. If you see I am trying to do fmt.Printf() but that doesnt work. How can I solve this problem of string interpolation/formatting for a “key/value” inside a map?
I tried few different options but nothing seem to work.
Awesome, thank you. I am a noob in golang. Just understood the difference between Printf and Sprintf. The latter returns one string value, convenient to use inside the map. Thanks gain…you saved my day literally.