go-rfc2396/mark/byte.go

11 lines
165 B
Go
Raw Normal View History

2023-12-08 00:30:28 +00:00
package mark
func ByteIs(value byte) bool {
switch value {
case '-' , '_' , '.' , '!' , '~' , '*' , '\'' , '(' , ')':
return true
default:
return false
}
}