MCPcopy
hub / github.com/cloudfoundry/cli / RandomName

Function RandomName

integration/helpers/name_generator.go:171–178  ·  view source on GitHub ↗

RandomName provides a random string

()

Source from the content-addressed store, hash-verified

169
170// RandomName provides a random string
171func RandomName() string {
172 guid, err := uuid.NewV4()
173 if err != nil {
174 panic(err)
175 }
176
177 return guid.String()
178}
179
180func RandomURL() string {
181 return fmt.Sprintf("https://%s.com", RandomName())

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected