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
Hi @chriscow, thanks for trying the tool and giving this feedback. I've created a PR (#2) for the solution to this issue, but I'm having trouble reproducing it.
In the PR I've updated an existing test case to include struct tags with backticks and it succeeds as desired. I've also tested it out locally (MacOS 15.1 with M1 chip) and couldn't reproduce. Could you provide the following details to help me debug this:
Amalgo version (amalgo -v). If you don't have the latest (0.5.1) please update and retry.
Create a single file that includes an example that produces this error. If you provide me with this file I will try it on my end. Please do not include any sensitive information in this file.
A good example of a working file is this projects main.go file. If I run amalgo -f 'main.go' I get the correct output including all the backticks that are used for the RootCmd struct.
It seems any source file that has a backtick string will get its backticks removed.
For example:
results in:
in the file. (see the json struct tags)
The text was updated successfully, but these errors were encountered: