go-queue
go-queue copied to clipboard
quque range (function minQuantity)
When the max num value, it will overflow
example:
var m uint32 = 4294967295
log.Println(minRoundNumBy2(m))
then, you will get 0
example,I add some code
if ^v == 0 {
v-- // the v type is uint32
} else {
v++
}