mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-11-03 16:56:37 +00:00
We were missing one repo needed for Windows; but we have also not deleted a bunch of vendored code that we are no longer using. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
22 lines
274 B
Go
22 lines
274 B
Go
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
|
|
}
|