goutils icon indicating copy to clipboard operation
goutils copied to clipboard

GoUtils is a Go implementation of some string manipulation libraries of Apache Commons. This is an open source project aimed at providing Go users with utility functions to manipulate strings in vario...

Results 4 goutils issues
Sort by recently updated
recently updated
newest added

```go func TestDeleteWhiteSpace(t *testing.T) { // Test 1 str := " a b c " out := "abc" if x := DeleteWhiteSpace(str); x != out { t.Errorf("IndexOf(%v) = %v, want...

unicode is not single byte, access by index is just only one byte, should use range loop of golang

In Go 1.15, converting from non-byte or -rune integer types directly to a string became a `go vet` warning, enabled by default when running `go test`. Goutils was using this...

`randNumeric` returns values that are interpreted as octal. This causes problems when randNumeric returns numbers that are invalid octal numbers, like 08 and 09. Errors related to this happen silently...