Ad
  • Custom User Avatar

    Runes in Go loosely equate to the "charcode as an int", and are represented by single-quotes.

    It's definitely a bit 'black magic', but it says:
    Take the charcode stored in c, take off the charcode of "a" (97) and add the charcode of "A" (65). Then, convert the result back to a string.

    So, for example, the letter "r" has ascii value 114. 114 - 97 + 65 = 82, which is the charcode of R.