fix golint issues in core/filex (#485)

This commit is contained in:
Kevin Wan
2021-02-19 14:30:38 +08:00
committed by GitHub
parent 802549ac7c
commit c376ffc351
5 changed files with 22 additions and 11 deletions

View File

@@ -3,8 +3,11 @@ package filex
import "gopkg.in/cheggaaa/pb.v1"
type (
// A Scanner is used to read lines.
Scanner interface {
// Scan checks if has remaining to read.
Scan() bool
// Text returns next line.
Text() string
}
@@ -14,6 +17,7 @@ type (
}
)
// NewProgressScanner returns a Scanner with progress indicator.
func NewProgressScanner(scanner Scanner, bar *pb.ProgressBar) Scanner {
return &progressScanner{
Scanner: scanner,