bool, int, float, byte, rune, string, constants, structs, slice, array, and map
Type conversion
int to string
string to int
float to string
string to float
characters and rune
Conversion Type
method
differences (if any)
Example
strconv.Itoa
not a standard but most common use
fmt.Sprintf
not as good as Itoa
strconv.Atoi
returns 0 is string is empty, or first character isnt number or a minu sign and returns the number formed up until that point
Important: write about fmt from herearrow-up-right
Last updated 5 years ago