How to convert double pointer string to string?
In this example we can directly pass string argument. But I have double pointer string to string requirement in my app.
package main
import (
"fmt"
)
func main() {
s := "ss"
a := &s
Modify(&a)
}
func Modify(s interface{}) {
fmt.Println(s)
}
Playground: https://play.golang.org/p/d4hrG9LzLNO