niki/vendor/github.com/brianvoe/gofakeit/v6/word_misc.go

25 lines
727 B
Go
Raw Permalink Normal View History

2024-04-26 19:30:35 +00:00
package gofakeit
import "math/rand"
// Interjection will generate a random word expressing emotion
func Interjection() string { return interjection(globalFaker.Rand) }
// Interjection will generate a random word expressing emotion
func (f *Faker) Interjection() string { return interjection(f.Rand) }
func interjection(r *rand.Rand) string { return getRandValue(r, []string{"word", "interjection"}) }
func addWordMiscLookup() {
AddFuncLookup("interjection", Info{
Display: "Interjection",
Category: "word",
Description: "Word expressing emotion",
Example: "wow",
Output: "string",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
return interjection(r), nil
},
})
}