mirror of
https://github.com/jefferyjob/go-easy-utils.git
synced 2025-09-27 03:15:55 +08:00
15 lines
175 B
Go
15 lines
175 B
Go
package strx
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
func ExampleCut() {
|
|
fmt.Println(Cut("this is-AAA", "A"))
|
|
fmt.Println(Cut("this is-AAA", "A", 1))
|
|
|
|
// Output:
|
|
// this is-
|
|
// this is-AA
|
|
}
|