map interface to string golang code example
Example 1: interface to string golang
var x interface{} = "abc"
str := fmt.Sprintf("%v", x)
Example 2: map string interface golang
{
"name":"John",
"age":29,
"hobbies":[
"martial arts",
"breakfast foods",
"piano"
]
}