forked from ebhomengo/niki
1
0
Fork 0
niki/vendor/github.com/Azure/go-ansiterm/utilities.go

22 lines
274 B
Go
Raw Normal View History

2024-08-29 03:26:59 +00:00
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
}