open-vault/vendor/go.opencensus.io/stats/internal/validation.go

15 lines
180 B
Go
Raw Normal View History

package internal
const (
MaxNameLength = 255
)
func IsPrintable(str string) bool {
for _, r := range str {
if !(r >= ' ' && r <= '~') {
return false
}
}
return true
}