Solution 4: Telling a UNIX System What to Do

Let’s solve the challenges set in the previous lesson.

Solution 1

Here’s the modified byLine.go code that uses Scanner instead of ReadString('\n'):

Get hands-on with 1400+ tech skills courses.