Is there a function in the go standard library that supports intelligent conversion between arbitrary primitive types, similar to the non-exported convertAssign
function in database/sql? It contains a great deal of useful conversion logic (far more than simple type assertions or direct casts), but seems to be only accessible indirectly through *sql.Rows.Scan
.