tkrajina / typescriptify-golang-structs

A Golang struct to TypeScript class/interface converter
Apache License 2.0
505 stars 87 forks source link

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

Open kotlinbuddy opened 6 months ago

kotlinbuddy commented 6 months ago

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

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

Won't work. Getting error:

Converting type main.test2

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