Remove github.com/satori/go.uuid.
This commit is contained in:
parent
e1d097ea20
commit
2e19e45aa4
25 changed files with 1027 additions and 365 deletions
6
vendor/github.com/huandu/xstrings/translate.go
generated
vendored
6
vendor/github.com/huandu/xstrings/translate.go
generated
vendored
|
@ -492,8 +492,9 @@ func Count(str, pattern string) int {
|
|||
// If pattern is not empty, only runes matching the pattern will be squeezed.
|
||||
//
|
||||
// Samples:
|
||||
// Squeeze("hello", "") => "helo"
|
||||
// Squeeze("hello", "m-z") => "hello"
|
||||
// Squeeze("hello", "") => "helo"
|
||||
// Squeeze("hello", "m-z") => "hello"
|
||||
// Squeeze("hello world", " ") => "hello world"
|
||||
func Squeeze(str, pattern string) string {
|
||||
var last, r rune
|
||||
var size int
|
||||
|
@ -532,6 +533,7 @@ func Squeeze(str, pattern string) string {
|
|||
}
|
||||
|
||||
last = r
|
||||
skipSqueeze = false
|
||||
}
|
||||
|
||||
str = str[size:]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue