Replies: 1 comment
-
To try to answer myself: I happened to find #513 and based on that came up with this:
This seems to work as expected, so while I am still curious if this is the "right" way, at least I can make something work :). |
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
-
Hello!
Given an input struct containing a slice of strings, something like this:
The idea above was to both limit the amount of elements in the slice, but also the length of each individual string in the slice. The latter does not seem to work as I expected (no errors, but a value outside the min/max length is passed through). What would be the correct way of expressing what I want?
Beta Was this translation helpful? Give feedback.
All reactions