Skip to content

Doesn't work for greater than 1D array of pointers #75

Open
@kotlinbuddy

Description

@kotlinbuddy

type test1 struct {
A int json:"a"
}

type test2 struct {
A [][]*test1 json:"a"
}

Won't work. Getting error:

Converting type main.test2

  • slice field test2.A
    panic: cannot find type for ptr (a/)

goroutine 1 [running]:
main.main()
../.../......./main.go:25 +0x114
exit status 2

If you change test2.A to 1d array, then works. So multi dimensional array of pointers doesn't seem to work for me

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