Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cut ¶
Cut slices s around the first instance of sep, returning the text before and after sep. The found result reports whether sep appears in s. If sep does not appear in s, cut returns s, nil, false.
Cut returns slices of the original slice s, not copies.
TODO(bpowers): Cut was added to the Go standard library
in 1.18. Once we depend on that, we can remove this copy. (this function is copied from the stdlib)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.