Answers for "convert interface of any type to string golang"

Go
5

interface to string golang

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

Code answers related to "convert interface of any type to string golang"

Browse Popular Code Answers by Language