4 ms·
btw, if you have code that currently casts to uint for shifts, you can rewrite it with gofmt: gofmt -r 'y << uint(x) -> y << x' (You'll have to run this m
by nemo1618 7y ago
btw, if you have code that currently casts to uint for shifts, you can rewrite it with gofmt:
gofmt -r 'y << uint(x) -> y << x'
(You'll have to run this multiple times for uint32, uint64 etc. if you shift with those types.)