Documentation ¶
Index ¶
- func CharAt(str string, index int) string
- func Contact(args ...string) string
- func DesensitizeData(val string, from, to uint, placeholder string) (string, error)
- func DesensitizePhone(val string, placeholder string) (string, error)
- func Substring(str string, start, end int) string
- func ToLowerCase(s string) string
- func ToUpperCase(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DesensitizeData ¶
DesensitizeData make data insensitive via hidden part of the data, default placeholder is '*'
func DesensitizePhone ¶
DesensitizePhone hidden middle 4 numbers of the mobile phone, default placeholder is '*'
func Substring ¶
Substring return the part of the string from the start and excluding the end, or to the end of the string if no end index is supplied ps: not include the end index element
func ToLowerCase ¶
ToLowerCase change the first letter of the string to lower
func ToUpperCase ¶
ToUpperCase change the first letter of the string to upper
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.