eol.IsEOL

master
Charles Iliya Krempeaux 2024-03-25 23:40:55 -07:00
parent c37dda75da
commit 6080dd1015
1 changed files with 20 additions and 0 deletions

20
iseol.go 100644
View File

@ -0,0 +1,20 @@
package eol
import (
"sourcecode.social/reiver/go-eol/cr"
"sourcecode.social/reiver/go-eol/ff"
"sourcecode.social/reiver/go-eol/lf"
"sourcecode.social/reiver/go-eol/ls"
"sourcecode.social/reiver/go-eol/nel"
"sourcecode.social/reiver/go-eol/ps"
"sourcecode.social/reiver/go-eol/vt"
)
func IsEOL(r rune) bool {
switch r {
case cr.Rune, ff.Rune, lf.Rune, ls.Rune, nel.Rune, ps.Rune, vt.Rune:
return true
default:
return false
}
}