-
Notifications
You must be signed in to change notification settings - Fork 643
Can't import Go libraries with names containing [^A-Za-z0-9_] #11
Comments
I think long term I'll need an alternative import syntax for Go imports, like:
But unfortunately that's not workable at the moment since I'm using the ast module for Python parsing and it won't accept this kind of syntax. In the short term, perhaps something like:
I'll put something together. |
Very dirty but, couldn't you temporarily hack grumpc to just detect I am not familiar with ast, so I am going through the grumpc code now. but yes , best would be |
golang.org does not include .com, I would suggest putting "github.com" and "golang.org" as special case for the time being. |
How to import libraries when its path contains "." ?
For example, I can import "github.com/labstack/echo" in pure go by
In grumpy, I can import it like
But it will be compiled to something like this
Anyway to correct this issue?
The text was updated successfully, but these errors were encountered: