【Go】Type conversion

Type Conversion

Format: T(v)

Where v is the original data to be converted and T is the target type after conversion

1
2
i: = 3
u: = uint(i)

The important point is: when assigning values between different types, go requires explicit conversion

Persist in original technology sharing, your support will encourage me to continue to create!