Cleanup logic for getting a directory size; support cancelation during goroutine

This commit is contained in:
Dane Everitt
2020-04-18 15:31:34 -07:00
parent 9e0cacc076
commit 71d38ff62e
5 changed files with 88 additions and 44 deletions

2
go.mod
View File

@@ -62,7 +62,7 @@ require (
golang.org/x/crypto v0.0.0-20200414173820-0848c9571904 // indirect
golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f // indirect
golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e // indirect
golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a // indirect
golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a
golang.org/x/sys v0.0.0-20200413165638-669c56c373c4 // indirect
golang.org/x/tools v0.0.0-20200417140056-c07e33ef3290 // indirect
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect