mirror of https://github.com/golang/go.git
parent
39a9cb4b5d
commit
edaf780d3d
|
|
@ -452,7 +452,7 @@ func getscheme(rawurl string) (scheme, path string, err error) {
|
|||
}
|
||||
|
||||
// split slices s into two substrings separated by the first occurrence of
|
||||
// sep. If cutc is true then sep is included with the second substring.
|
||||
// sep. If cutc is true then sep is excluded from the second substring.
|
||||
// If sep does not occur in s then s and the empty string is returned.
|
||||
func split(s string, sep byte, cutc bool) (string, string) {
|
||||
i := strings.IndexByte(s, sep)
|
||||
|
|
|
|||
Loading…
Reference in New Issue