Documentation ¶
Index ¶
- func IsAlNumString(s string) bool
- func JoinInt32List(s []int32, sep string) string
- func JoinInt64List(s []int64, sep string) string
- func JoinUint32List(s []uint32, sep string) string
- func JoinUint64List(s []uint64, sep string) string
- func SplitInt32List(s, p string) ([]int32, error)
- func SplitInt64List(s, p string) ([]int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAlNumString ¶
IsAlNumString returns true if an alpha numeric string consists of characters a-zA-Z0-9
https://github.com/nebulaim/telegramd/issues/99
there are some issue in username validation 1 - issue : username can be only numeric [must check first character for alphabet] 2 - issue :underscore not allowed [must edit IsAlNumString and add underscore support to it.
by the way underscore can't repeat without any character between them. for example s_a_b_a. ]
func JoinInt32List ¶
func JoinInt64List ¶
func JoinUint32List ¶
func JoinUint64List ¶
func SplitInt32List ¶
SplitInt32List split string into int32 slice.
func SplitInt64List ¶
SplitInt64List split string into int64 slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.