You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of now we cannot remove attrPrefix and contentPrefix by setting them to a blank string as the decoder checks on that and defaults to their const attrPrefix and contentPrefix
In our case we'd like not to use any prefixes onto either of the extracted values. A simple fix could be to define attrPrefix and contentPrefix as var instead of const in order to allow overriding them using ldflags
The text was updated successfully, but these errors were encountered:
Cannot rid of "minuses" before inner parameter names in a simple way. Conversion to parameters that has different name (with minus prefix) is an obstacle.
update:
The issue mostly due to lack of dockumentation.
Here as I have solved the prefix problem:
As of now we cannot remove
attrPrefix
andcontentPrefix
by setting them to a blank string as the decoder checks on that and defaults to their constattrPrefix
andcontentPrefix
In our case we'd like not to use any prefixes onto either of the extracted values. A simple fix could be to define attrPrefix and contentPrefix as
var
instead ofconst
in order to allow overriding them using ldflagsThe text was updated successfully, but these errors were encountered: