-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
golang formatter: problem when code snippet is not a full file #151
Comments
Good catch 🚀 |
I believe #154 should fix the issue. It passes tests for both with and without package name 😄 |
I'll check by running on my documentation codebase. |
I hope you are finding all my feedback useful. I hope I'm a good alpha/beta tester 😅 |
You are an amazing bug finder ❤️ |
I found a possible edge case |
It works as expected |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
golang can only be formatted with tools if the file is valid.
So if the linting doesn't work you can try to add this to the begining of the file
mdsf will then be able to format like this
Then if you trim the code then
It would be a more fail proof hack but quite an hack
The text was updated successfully, but these errors were encountered: