Files
mgmt/util
Jonathan Gold bb2f2e5e54 util: Add PathSlice type that satisfies sort.Interface
This commit adds a []string{} type alias named PathSlice, and the
Len(), Swap(), and Less() methods required to satisfy sort.Interface.
Now you can do `sort.Sort(util.PathSlice(foo))` where foo is a slice
of paths. It will be sorted by depth in alphabetical order.
2018-12-17 01:14:54 -05:00
..
2018-01-03 21:22:07 -05:00
2018-04-19 01:10:58 -04:00
2018-04-19 01:10:58 -04:00
2018-01-03 21:22:07 -05:00
2018-04-19 01:10:58 -04:00