// ToString convert the input to a string. func ToString(obj interface{ … } // ToJSON convert the input to a valid JSON string func ToJSON(obj interface{ … } // ToFloat convert the input string to a float, or 0.0 if the input is not a float. func ToFloat(str string) (float64, error) { … } // ToInt convert the input string or any int type to an integer type 64, or 0 if the input is not an integer. func ToInt(value interface{ … } // ToBoolean convert the input string to a boolean. func ToBoolean(str string) (bool, error) { … }