go-rfc2616/sp/rune.go

9 lines
197 B
Go
Raw Normal View History

2023-12-06 15:52:33 +00:00
package sp
2023-12-08 20:59:32 +00:00
// RuneIs return whether the rune is a 'SP' (spacing) character, as defined by IETF RFC-2616.
2023-12-06 15:52:33 +00:00
//
// SP = <US-ASCII SP, space (32)>
2023-12-08 20:59:32 +00:00
func RuneIs(value rune) bool {
2023-12-06 15:52:33 +00:00
return ' ' == value
}