feat: add continue

This commit is contained in:
崔竞宁
2022-09-14 00:53:10 +08:00
parent 11e3201692
commit 7e7d887b2e
7 changed files with 234 additions and 41 deletions
+11
View File
@@ -31,6 +31,9 @@ type option struct {
withProgressBar bool
threads int
withHash bool
autoFill bool
autoFillSplitDepth int
}
func newOption() *option {
@@ -179,3 +182,11 @@ func WithHash(b bool) Option {
return o
}
}
func WithAutoFill(on bool, depth int) Option {
return func(o *option) *option {
o.autoFill = on
o.autoFillSplitDepth = depth
return o
}
}