Source File
chop.go
Belonging Package
src.elv.sh/pkg/strutil
package strutil// ChopLineEnding removes a line ending ("\r\n" or "\n") from the end of s. It// returns itself if it doesn't end with a line ending.func ( string) string {if len() >= 2 && [len()-2:] == "\r\n" {return [:len()-2]} else if len() >= 1 && [len()-1] == '\n' {return [:len()-1]}return}
The pages are generated with Golds v0.2.8-preview. (GOOS=darwin GOARCH=arm64)