Is there any workaround for pointers in the Fact struct? #263
Unanswered
mledezma-r7
asked this question in
Q&A
Replies: 1 comment
-
As of now, we have not planned to implement evaluation logic for pointer for facts other than struct. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any workaround (or plan to support) for pointers to primitive types in the Fact struct
Something like this
The nature of my data requires value distinction after unmarshalling the following two sample json docs
the resulting struct would be equivalent to this for both case 1 and 2
Fact{Foo: "", Bar: false}
If we go with the struct with pointer we would get the following equivalents
1)
Fact{Foo: nil, Bar: nil}
Problem I'm facing is that I'm not able to pull (and evaluate) the values pointed by the pointers
Keep in mind I'm starting with go, so it might be a silly question
Thank you
Beta Was this translation helpful? Give feedback.
All reactions