Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

fix panic on using map with value of aliased type #166

@daniel134256

Description

@daniel134256

The following will panic:

type Name string

func Test() {
    v := map[string]Name{}
    faker.FakeData(&v)
}

output:

panic: reflect.Value.SetMapIndex: value of type string is not assignable to type <package-name>.Name [recovered]

Opened #165 to fix the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions