riccardoperra / codeimage

A tool to beautify your code screenshots. Built with SolidJS and Fastify.
https://codeimage.dev
MIT License
1.29k stars 67 forks source link

🐞 - [Golang] Incorrect import declaration by auto completion #633

Closed afifurrohman-id closed 2 months ago

afifurrohman-id commented 2 months ago

Which @codeimage/* package(s) are the source of the bug?

codeimage

Please provide a screenshot or a video to a minimal reproduction of the bug

No response

Description

According golang spec this seem this invalid. https://go.dev/ref/spec#Import_declarations

https://github.com/riccardoperra/codeimage/assets/118882411/04619cea-ca5e-447f-853c-a991058f5d4f

Which browsers have you used?

Which operating systems have you used?

riccardoperra commented 2 months ago

Hi, I suggest you to open an issue for @codemirror/lang-go package

https://github.com/codemirror/dev - issue tracker

Referenced code https://github.com/codemirror/lang-go/blob/main/src/snippets.ts