b7daa2f3a4
Update traefik dependencies (docker/docker and related) - Update dependencies - Fix compilation problems - Remove vdemeester/docker-events (in docker api now) - Remove `integration/vendor` - Use `testImport` - update some deps. - regenerate the lock from scratch (after a `glide cc`)
21 lines
274 B
Go
21 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
|
|
}
|