golang cast number to string code example Example: golang convert int to string str := strconv.Itoa(12)