feat: str 包增加内置字符 Dunno、CenterDot、Dot、Slash 和其 []byte 形式
This commit is contained in:
parent
a4a27ea9da
commit
94147e8b9c
|
@ -1,7 +1,19 @@
|
||||||
package str
|
package str
|
||||||
|
|
||||||
const (
|
const (
|
||||||
None = "" // 空字符串
|
None = "" // 空字符串
|
||||||
|
Dunno = "?" // 未知
|
||||||
|
CenterDot = "·" // 中点
|
||||||
|
Dot = "." // 点
|
||||||
|
Slash = "/" // 斜杠
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
NoneBytes = []byte("") // 空字符串
|
||||||
|
DunnoBytes = []byte("?") // 未知
|
||||||
|
CenterDotBytes = []byte("·") // 中点
|
||||||
|
DotBytes = []byte(".") // 点
|
||||||
|
SlashBytes = []byte("/") // 斜杠
|
||||||
)
|
)
|
||||||
|
|
||||||
// FirstUpper 首字母大写
|
// FirstUpper 首字母大写
|
||||||
|
|
Loading…
Reference in New Issue