| ▲ | tkzed49 8 days ago | ||||||||||||||||
Beautiful. Minor feedback: rather than having a "use golang" directive, just allow imports of .go files. This is more idiomatic for JS bundlers.  | |||||||||||||||||
| ▲ | CamouflagedKiwi 8 days ago | parent | next [-] | ||||||||||||||||
That would also avoid the problem with this syntax, that it's not a valid Go file (it doesn't start with `package ...` and I don't think a bare top-level string is valid), which lots of editors will be pretty unhappy about.  | |||||||||||||||||
| ▲ | halapro 8 days ago | parent | prev | next [-] | ||||||||||||||||
Definitely not a minor feedback, there's no reason to write go in a .js file. Vite/rollup are perfectly able to "load" certain file types and parse them however you like.  | |||||||||||||||||
  | |||||||||||||||||
| ▲ | whizzter 8 days ago | parent | prev | next [-] | ||||||||||||||||
Should also help with syntax highlighting.  | |||||||||||||||||
| ▲ | 7 days ago | parent | prev [-] | ||||||||||||||||
| [deleted] | |||||||||||||||||