cast
cast copied to clipboard
not safe for uint64
I have a value id=16607535815717977617:
id1 := cast.ToString(id) // -1839208257991573999
id2 := strconv.FormatUint(id, 10) // 16607535815717977617
which is an unexpected behavior.
I have a value id=16607535815717977617:
id1 := cast.ToString(id) // -1839208257991573999 id2 := strconv.FormatUint(id, 10) // 16607535815717977617
which is an unexpected behavior.
you can try cvt