You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package util
|
|
|
|
import "strings"
|
|
|
|
// TrimNewLine trims \r and \n chars.
|
|
func TrimNewLine(s string) string {
|
|
return strings.NewReplacer("\r", "", "\n", "").Replace(s)
|
|
}
|