internal/format/format.go
Function TransferStatus
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func TransferStatus(fn string, iteration int, twidth int, p float64, eta time.Duration, bytesPerS int64) string {
Function Bytes
has 5 return statements (exceeds 4 allowed). Open
Open
func Bytes(bytes int64) string {
if bytes >= 1e12 {
return fmt.Sprintf("%dTB", bytes/1e12)
} else if bytes >= 1e9 {
return fmt.Sprintf("%dGB", bytes/1e9)