Skip to content

Commit e65c9e0

Browse files
committed
Mark IsLetter, IsDigit, IsAlphanumeric as deprecated
1 parent c7273ee commit e65c9e0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/parser/parser.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,22 @@ func ValidateDeviceName(name string) error {
104104
}
105105

106106
// IsLetter reports whether the rune is a letter.
107+
//
108+
// Deprecated: This check is internal and should not be part of the public API.
107109
func IsLetter(c rune) bool {
108110
return ('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z')
109111
}
110112

111113
// IsDigit reports whether the rune is a digit.
114+
//
115+
// Deprecated: This check is internal and should not be part of the public API.
112116
func IsDigit(c rune) bool {
113117
return '0' <= c && c <= '9'
114118
}
115119

116120
// IsAlphaNumeric reports whether the rune is a letter or digit.
121+
//
122+
// Deprecated: This check is internal and should not be part of the public API.
117123
func IsAlphaNumeric(c rune) bool {
118124
return IsLetter(c) || IsDigit(c)
119125
}

0 commit comments

Comments
 (0)