Tag:Int to uint

  • How big are int types and uint types in golang?


    Before we start, let’s look at the difference between uint and int Above is the figure, and below is the source code: package main import ( “fmt” _ “time” ) func main() { A: = byte (255) // 11111111 this is the limit of byte, because a: = byte (256) // out of range error […]