Skip to content

Commit e5783c3

Browse files
committed
Mark IsLetter, IsDigit, IsAlphanumeric as deprecated
Signed-off-by: Evan Lezar <[email protected]>
1 parent 5a5d2a5 commit e5783c3

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
@@ -121,16 +121,22 @@ func ValidateDeviceName(name string) error {
121121
}
122122

123123
// IsLetter reports whether the rune is a letter.
124+
//
125+
// Deprecated: This check is internal and should not be part of the public API.
124126
func IsLetter(c rune) bool {
125127
return ('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z')
126128
}
127129

128130
// IsDigit reports whether the rune is a digit.
131+
//
132+
// Deprecated: This check is internal and should not be part of the public API.
129133
func IsDigit(c rune) bool {
130134
return '0' <= c && c <= '9'
131135
}
132136

133137
// IsAlphaNumeric reports whether the rune is a letter or digit.
138+
//
139+
// Deprecated: This check is internal and should not be part of the public API.
134140
func IsAlphaNumeric(c rune) bool {
135141
return IsLetter(c) || IsDigit(c)
136142
}

0 commit comments

Comments
 (0)