🌲
Tree 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
Reading nested directories, computing stats from a directory structure
Writing table-driven tests
Tree data structure and how to represent that in Go code
Converting a struct into custom JSON and XML format (when implementing the last few stories of the problem statement)