go-rfc2616/char/rune.go

9 lines
208 B
Go
Raw Normal View History

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