Answers for "map interface to string golang"

5

interface to string golang

var x interface{} = "abc"
str := fmt.Sprintf("%v", x)
Posted by: Guest on August-08-2020
-1

map string interface golang

{
   "name":"John",
   "age":29,
   "hobbies":[
      "martial arts",
      "breakfast foods",
      "piano"
   ]
}
Posted by: Guest on March-01-2021

Code answers related to "map interface to string golang"

Browse Popular Code Answers by Language