MCPcopy
hub / github.com/labstack/echo / createRandomStringGenerator

Function createRandomStringGenerator

middleware/util.go:38–42  ·  view source on GitHub ↗
(length uint8)

Source from the content-addressed store, hash-verified

36}
37
38func createRandomStringGenerator(length uint8) func() string {
39 return func() string {
40 return randomString(length)
41 }
42}
43
44// https://tip.golang.org/doc/go1.19#:~:text=Read%20no%20longer%20buffers%20random%20data%20obtained%20from%20the%20operating%20system%20between%20calls
45var randomReaderPool = sync.Pool{New: func() any {

Callers 2

ToMiddlewareMethod · 0.85
ToMiddlewareMethod · 0.85

Calls 1

randomStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…