4b9891533a
Milestone: the demo app prints /proc/loadavg from the device.
19 lines
273 B
Go
19 lines
273 B
Go
package goadb
|
|
|
|
import "strings"
|
|
import (
|
|
"regexp"
|
|
)
|
|
|
|
var (
|
|
whitespaceRegex = regexp.MustCompile(`^\s*$`)
|
|
)
|
|
|
|
func containsWhitespace(str string) bool {
|
|
return strings.ContainsAny(str, " \t\v")
|
|
}
|
|
|
|
func isBlank(str string) bool {
|
|
return whitespaceRegex.MatchString(str)
|
|
}
|