feature: added string utils

master
amorozov 2024-06-20 16:06:34 +03:00
parent 167f79ab24
commit 67744fd4a1
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
package string_utils
import "runtime"
func GetLineSeparator() string {
switch runtime.GOOS {
case "windows":
return "\r\n"
case "darwin":
return "\r"
default:
return "\n"
}
}