In this exercise your task is to work with the newline-delimited string below and count the occurrence of each character per line. You will need to make use of several features of of the Go programming language to accomplish this task, including variables, values, for and range, slices, maps, functions and reading from a file.
- Read the list of Go proverbs from
proverbs.txt
and handle potential errors. - Iterate through every proverb and count the number of times the character appears in that sentence.
- Make use of the standard library packages only.
- Your output should look like the sample below (though the sequence of characters will be different).