feat: str 包增加内置字符 Dunno、CenterDot、Dot、Slash 和其 []byte 形式

This commit is contained in:
kercylan98 2023-07-12 17:46:13 +08:00
parent a4a27ea9da
commit 94147e8b9c
1 changed files with 13 additions and 1 deletions

View File

@ -1,7 +1,19 @@
package str
const (
None = "" // 空字符串
None = "" // 空字符串
Dunno = "?" // 未知
CenterDot = "·" // 中点
Dot = "." // 点
Slash = "/" // 斜杠
)
var (
NoneBytes = []byte("") // 空字符串
DunnoBytes = []byte("?") // 未知
CenterDotBytes = []byte("·") // 中点
DotBytes = []byte(".") // 点
SlashBytes = []byte("/") // 斜杠
)
// FirstUpper 首字母大写