I am trying to convert a bool called isExist to a string (true or false) by using string(isExist)
bool
isExist
string
true
false
string(isExist)
use the strconv package
docs
strconv.FormatBool(v)
func FormatBool(b bool) string FormatBool returns "true" or "false" according to the value of b