mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 18:00:24 +08:00
10 lines
154 B
Go
10 lines
154 B
Go
package util
|
|
|
|
import "strings"
|
|
|
|
func TrimNewLine(s string) string {
|
|
s = strings.ReplaceAll(s, "\r", "")
|
|
s = strings.ReplaceAll(s, "\n", "")
|
|
return s
|
|
}
|