1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-20 02:03:17 +00:00

vendor: add github.com/Azure/go-ansiterm for --progress on Windows support

This commit is contained in:
Nick Craig-Wood
2018-08-17 17:04:18 +01:00
parent b6db90cc32
commit 18685e6b0b
29 changed files with 3175 additions and 0 deletions

21
vendor/github.com/Azure/go-ansiterm/utilities.go generated vendored Normal file
View File

@@ -0,0 +1,21 @@
package ansiterm
import (
"strconv"
)
func sliceContains(bytes []byte, b byte) bool {
for _, v := range bytes {
if v == b {
return true
}
}
return false
}
func convertBytesToInteger(bytes []byte) int {
s := string(bytes)
i, _ := strconv.Atoi(s)
return i
}