英文名Ramdom男/女名字生成器。Golang端口。

Man name: Hughe Craster

Woman name: Mary Lighten

例子


package main

import (

\t\"fmt\"

\t\"github.com/yelinaung/eng-name\"

\t\"time\"

)

func main() {

\tfmt.Println()

\t// You have to seed yourself

\tRandName := engname.New(time.Now().UTC().UnixNano())

\t// Generating random men names

\tfmt.Printf(\"Man name : %v\", RandName.GetMenName())

\t// Generating random women names

\tfmt.Printf(\"Woman name : %v\", RandName.GetWomenName())

}