Parse string to specific type of int (int8, int16, int32, int64)
As per documentation func ParseInt(s string, base int, bitSize int) (i int64, err error) ParseInt always return int64 no matter what. Moreover The bitSize argument specifies the integer type that the result must fit into So basically the your bitSize parameter only tells that the string value that you are going to parse should fit … Read more