- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TrimRight (0.32 sec)
-
src/bytes/bytes.go
} s = s[n:] } if len(s) == 0 { // This is what we've historically done. return nil } return s } // TrimRight returns a subslice of s by slicing off all trailing // UTF-8-encoded code points that are contained in cutset. func TrimRight(s []byte, cutset string) []byte { if len(s) == 0 || cutset == "" { return s } if len(cutset) == 1 && cutset[0] < utf8.RuneSelf {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Feb 19 19:51:15 GMT 2024 - 33.8K bytes - Viewed (0)