mirror of
https://github.com/DeBrosOfficial/orama.git
synced 2026-03-17 19:36:58 +00:00
27 lines
663 B
Go
27 lines
663 B
Go
package sandbox
|
|
|
|
import (
|
|
"math/rand"
|
|
)
|
|
|
|
var adjectives = []string{
|
|
"swift", "bright", "calm", "dark", "eager",
|
|
"fair", "gold", "hazy", "iron", "jade",
|
|
"keen", "lush", "mild", "neat", "opal",
|
|
"pure", "raw", "sage", "teal", "warm",
|
|
}
|
|
|
|
var nouns = []string{
|
|
"falcon", "beacon", "cedar", "delta", "ember",
|
|
"frost", "grove", "haven", "ivory", "jewel",
|
|
"knot", "latch", "maple", "nexus", "orbit",
|
|
"prism", "reef", "spark", "tide", "vault",
|
|
}
|
|
|
|
// GenerateName produces a random adjective-noun name like "swift-falcon".
|
|
func GenerateName() string {
|
|
adj := adjectives[rand.Intn(len(adjectives))]
|
|
noun := nouns[rand.Intn(len(nouns))]
|
|
return adj + "-" + noun
|
|
}
|