-
Notifications
You must be signed in to change notification settings - Fork 31
Params is a keyword? #111
Description
Context:
So I've stumbled upon needing to use this project while trying to resurrect the wildly out of date / broken slack client in Atlantis: https://github.com/runatlantis/atlantis/tree/master/server/events/webhooks
I'm not sure how much anyone cares about any of these rambles, but this community seems like they might care? So here we are.
So the first discovery I've found is trivial, defining an interface's method with a parameter named params makes our generator create broken code:
The solution is to simply ignore the provided name params:
https://github.com/slack-go/slack/blob/master/conversation.go#L81
And do something like this:
And we're off again.
Not sure if we want to document this hiccup, or make our code generator smarter? Happy to contribute, just need some guidance.
