MCPcopy Index your code
hub / github.com/cloudfoundry/cli / RandomString

Function RandomString

command/v7/v7_suite_test.go:25–32  ·  view source on GitHub ↗

RandomString provides a random string

(prefix string)

Source from the content-addressed store, hash-verified

23
24// RandomString provides a random string
25func RandomString(prefix string) string {
26 guid, err := uuid.NewV4()
27 if err != nil {
28 panic(err)
29 }
30
31 return prefix + "-" + guid.String()
32}
33
34func setFlag(cmd interface{}, flag string, values ...interface{}) {
35 var value reflect.Value

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected