. Advertisement .
..3..
. Advertisement .
..4..
I am trying to convert string to interface in golang but I’ve not found a solution for it yet. Can someone share with me your experience?
Here is our case study:exInterface := data["exString"].([]interface{})
exString := make([]string, len(exInterface))
for i, ex := range exInterface {
exString[i] = ex.(string)
}
Here may be an example
Here is the sample