gofaker(inspired by ruby gem faker) is a useful tool for generating data.
go version: 1.9+
go get github.com/zhaolion/gofaker
package main
import (
"fmt"
"github.com/zhaolion/gofaker"
)
func main() {
gofaker.SetLocale("zh-CN")
fmt.Println(gofaker.RandomCellPhone())
}
curl https://glide.sh/get | sh
make dep
make test
Please PR, Thanks.