Search⌘ K

Solution: Counting Unicode Characters

See the solution to how the count function can be used to count Unicode characters.

We'll cover the following...

Solution explanation

We start with a scanner, which is used to read text from a reader (such as files):

Go (1.6.2)
scanner := bufio.NewScanner(r)

If the ...