convert interface of any type to string golang code example Example: interface to string golang var x interface{} = "abc" str := fmt.Sprintf("%v", x)