diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2023-10-28 08:26:20 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-28 08:26:20 -0400 |
| commit | 1b226e58af4058190ce0889aa54b5c489ede554f (patch) | |
| tree | fd30d0f54edf2642605f28a40af89e28392c658b /random | |
| parent | cdb317959ba9f4e12919b60b7ebd40f2afc1b345 (diff) | |
A bunch of linting and refactorings (#1893)
Diffstat (limited to 'random')
| -rw-r--r-- | random/random.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/random/random.go b/random/random.go index 742099d0..e3fd2390 100644 --- a/random/random.go +++ b/random/random.go @@ -15,7 +15,7 @@ const defaultSet = "-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstu // StringRE - Generate a random string that matches a given regular // expression. Defaults to "[a-zA-Z0-9_.-]" func StringRE(count int, match string) (r string, err error) { - var chars = []rune(defaultSet) + chars := []rune(defaultSet) if match != "" { chars, err = matchChars(match) if err != nil { |
