go-rfc2616/char/byte.go

9 lines
208 B
Go
Raw Normal View History

2023-12-06 16:27:42 +00:00
package char
// ByteIsChar returns whether the byte is a 'CHAR', as defined by IETF RFC-2616.
//
// CHAR = <any US-ASCII character (octets 0 - 127)>
func ByteIsChar(value byte) bool {
return value <= 127
}