I'm trying to test if a value coming from the gjson library is a string in the quickest and simplest way possible. I don't want to use a switch type assertion.
if reflect.TypeOf(gjson.Get(input, "name").Value()) != "string" {
return "Not a string!"
}
What's wrong with my code?