MCPcopy Index your code
hub / github.com/bytebase/bytebase / generateRandomString

Function generateRandomString

backend/tests/common.go:9–11  ·  view source on GitHub ↗
(prefix string)

Source from the content-addressed store, hash-verified

7)
8
9func generateRandomString(prefix string) string {
10 return fmt.Sprintf("%s-%s", prefix, uuid.New().String()[:10])
11}

Calls 1

StringMethod · 0.65