This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed error: ``` $ cat > /tmp/1.go <<EOF package main import "github.com/bxcodec/faker" type array [16]byte func main() { var a array faker.FakeData(&a) } EOF $ go run /tmp/1.go panic: reflect.MakeSlice of non-slice type goroutine 1 [running]: reflect.MakeSlice(0x53d860, 0x4eed00, 0xd, 0xd, 0x0, 0x0, 0x0) /home/xaionaro/.gimme/versions/go1.13.linux.amd64/src/reflect/value.go:2256 +0x1d8 github.com/bxcodec/faker.getValue(0x4eed00, 0xc0000163a0, 0x191, 0x4eed01, 0x4eed00, 0xc0000163a0, 0x20300000000000) /home/xaionaro/go/src/github.com/bxcodec/faker/faker.go:444 +0xca0 github.com/bxcodec/faker.getValue(0x4dea40, 0xc000016380, 0xc00000e240, 0xc00000e220, 0x40c556, 0xc00000e1e0, 0xc00000e1c0) /home/xaionaro/go/src/github.com/bxcodec/faker/faker.go:355 +0x169e github.com/bxcodec/faker.FakeData(0x4dea40, 0xc000016380, 0x56e00, 0xc0000240b8) /home/xaionaro/go/src/github.com/bxcodec/faker/faker.go:280 +0x1c6 main.main() /tmp/1.go:6 +0x3d exit status 2 ``` Signed-off-by: Dmitry Yu Okunev <xaionaro@dx.center>
- Loading branch information