Open ImIOImI opened 3 months ago
Hey @ImIOImI thanks for this issue. The go provider is very experimental and this is likely the reason why you are getting crashes. Panics should never happen in a regular provider, so this is definitely a bug.
Looks like this scenario was never implemented in the initial version: https://github.com/opentofu/terraform-provider-go/blob/main/main.go#L449
I'm experimenting a bit with creating functions to deal with maps and I'm getting some very incomprehensible error messages (especially for a go newb like me).
I'm less interested in getting this particular code working as I am interested in learning how to deal with maps (especially ones with an arbitrary depth) and transform them via go scripts.
This is the code I wrote:
What I think I did wrong is that I need to define the input like a struct, because what's getting submitted is the wrong type... but this is the error message:
Again, I'm fairly new to using go, but nothing in the above error message screams out that I screwed up the input type.