package solutions import ( "strconv" "strings" ) func ItoaBase(value, base int) string { if base < 2 || base > 16 { return "" } return strings.ToUpper(strconv.FormatInt(int64(value), base)) }