-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to convert object to go's map #77
Comments
Hi @faruqisan, If by "object" you mean a value whose type is an object type, With all of that said, in your example here it seems like your underlying goal is just to print out a string representation of the value. If so, there are some other ways to get that done without first converting into a Go map:
|
Thanks, @apparentlymart , I saw in this docs that conversion from object to map is a safe operation that’s why I tried this. Like what you said, my goal is just to print out a value in a string form, and I will try to use I will close this issue |
Hi, I'm trying to parse cty.Object to go's map
got this error
I already pass the map to FromCtyValue, and also try to change map key type to interface{} and the error still same.
The text was updated successfully, but these errors were encountered: