Files
go-easy-utils/strx/cut_example_test.go
2025-07-23 15:03:25 +08:00

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
}