
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
a bracket expression matches any character among those listed between the opening and closing square brackets. Within a bracket expression, a range expression consists of two characters separated by a hyphen. It matches any single character that sorts between the two characters, based upon the systemâs native character set. For example, â[0-9]â is equivalent to â[0123456789]â ~ GNU Awk manual
Bracket expressions are often used to limit searches, regular expressions and filters. But sometimes you need to have the range of characters expanded and explicitly listed; this library helps do that.
gen, _ := bechars.New()
rng, _ := gen.Generate("[:print:]")
fmt.Println(rng) // => " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"
// Unicode characters
rng, _ = gen.Generate("[\u0e010-2]")
fmt.Println(rng) // => "ŕ¸012"
rng, _ = gen.Generate("[:punct:]")
fmt.Println(rng) // => "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~]"
The generator can also be configured:
gen, _ := bechars.New(MinRune('a'), MaxRune('z'))
rng, _ := gen.Generate("[^:cntrl::punct:]")
fmt.Println(rng) // => "abcdefghijklmnopqrstuvwxyz"
See the tests for more examples.
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.