Lint fixes

Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
Derek McGowan
2022-09-13 22:10:34 -07:00
parent 28ea754565
commit 478f1c934d
10 changed files with 28 additions and 23 deletions

View File

@@ -86,14 +86,14 @@ type ImageUnpacker interface {
type ProgressFunc func(Progress)
type TransferOpts struct {
type Config struct {
Progress ProgressFunc
}
type Opt func(*TransferOpts)
type Opt func(*Config)
func WithProgress(f ProgressFunc) Opt {
return func(opts *TransferOpts) {
return func(opts *Config) {
opts.Progress = f
}
}