You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to propose a change to the language, please follow the proposal process outlined at https://github.com/golang/proposal/blob/master/README.md . If you want to discuss ideas about how to add decorators to Go, please use the golang-nuts mailing list. I'm going to close this issue because there isn't enough information here to act on. We need more than just the suggestion of decorators; we need syntax, discussion of pros and cons, etc. Unfortunately we don't have time or knowledge to do that work for you just based on the mere suggestion. Thanks.
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.10.3 darwin/amd64
Does this issue reproduce with the latest release?
I'm not sure.
What operating system and processor architecture are you using (
go env
)?What did you do?
Writing a Web Server.
What did you expect to see?
Nothing.
What did you see instead?
Nothing.
This is a not a bug report but an enhancement request.
What I want?
I want Go can support decorator just like in python, this is very helpful in server development!
For example, I want to refuse the unauth request for some method. Then, I must write many redundancy code to check auth state.
Just like
python
:The text was updated successfully, but these errors were encountered: