cast icon indicating copy to clipboard operation
cast copied to clipboard

not safe for uint64

Open m11y opened this issue 5 years ago • 1 comments

I have a value id=16607535815717977617:

id1 := cast.ToString(id)            // -1839208257991573999
id2 := strconv.FormatUint(id, 10)   // 16607535815717977617

which is an unexpected behavior.

m11y avatar Dec 11 '19 07:12 m11y

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

shockerli avatar Oct 15 '21 08:10 shockerli