josharian / impl

impl generates method stubs for implementing an interface.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accept quoted package + interface input

josharian opened this issue · comments

Similar to gorename, so that people and tool authors can move comfortably from one tool to the next. We currently accept net/http.ResponseWriter; we should also accept "net/http".ResponseWriter.

Moved from the discussion in #12.

cc @shurcooL

What do you think about requiring it rather than accepting it in addition to the net/http.ResponseWriter syntax? The implementation would be simpler if there was one strict format rather than multiple, and I personally prefer simpler tools with less ambiguity about how to specify parameters.

Just curious to hear your thoughts; I expect you may not like it.

For the reasons given in the other discussion, I'd rather accept both. I don't think this is a harmful ambiguity.

Ok, that's understandable.