- reimplement TrimBlanChar
This commit is contained in:
@@ -196,10 +196,7 @@ func FilterMb4(content string) string {
|
||||
}
|
||||
|
||||
func TrimBlanChar(str string) string {
|
||||
return strings.TrimFunc(str, func(value rune) bool {
|
||||
strValue := string(value)
|
||||
return strValue == " " || strValue == "\t" || strValue == "\n" || strValue == "\r"
|
||||
})
|
||||
return strings.Trim(str, "\n\r\t ")
|
||||
}
|
||||
|
||||
func RemoveGeneralMapKeys(obj map[string]interface{}, keys ...string) map[string]interface{} {
|
||||
|
||||
Reference in New Issue
Block a user