Replies: 2 comments
-
You can use Patch to override this part. |
Beta Was this translation helpful? Give feedback.
0 replies
-
In order to use someapi it should be a struct. Unfortunately Go’s reflect doesn’t support reflection on packages. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
For example:
The expression I want to execute is to validate the value of an enumeration.
errors encountered:
failed: unknown name someapi
This error is easy to understand, but I don't know how to import the "someapi" package into
expr
context.I tried to convert the type to int32, but it didn't work
failed: unknown func int32
The only solution I've found so far is to convert to string
This looks more expensive, so I want to seek the best practice.
Beta Was this translation helpful? Give feedback.
All reactions