🔍
Grep in Go
Exercise: Solve this exercise in Go with test cases.
Labels: Intermediate
Time to complete: 4-5 days
What will you learn:
- Basics of CLI building in Go, parsing CLI flags, cobra library
- File reading and writing, dealing with a large number of files
- Writing table-driven tests
- Power of interfaces in Go (io.Reader interface)
- Using channels and goroutines to efficiently process multiple files in parallel, mutex, fan-in pattern for goroutines and channels.