The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

46367 (1) [Avatar] Offline
#1
Nathan Youngman (56) [Avatar] Offline
#2
Hi Doug,

This solution is excellent. I like how you used strings.Builder.

Also, I didn’t realize converting a string to []rune does the right thing for UTF-8, but it does! Thank you.
https://play.golang.org/p/Jc0rpciQHJh
386193 (5) [Avatar] Offline
#3
Chap 11 Capstone: the Vigenere cipher
46367 wrote:Here's my solution:
https://play.golang.org/p/JNLh7dGctgL
Nathan Youngman (56) [Avatar] Offline
#4
Chap 11 Capstone: the Vigenere cipher
386193 wrote:
46367 wrote:Here's my solution:
https://play.golang.org/p/JNLh7dGctgL


Nice work. Note that you can also do:

const asciiA rune = 'A'


or even:

const asciiA = 'A'