News for hackers. Stuff that matters.
Re:Google’s Go has some coders raving by venomsnake on Thursday May 30, 2013 @12:45PM (#5793558)
Can golang do function decorators - I have been using it for some pet projects (nothing fancy) but could not find this so loved python feature there?
Re:Google’s Go has some coders raving by supersillyus on Thursday May 30, 2013 @05:08PM (#5795243)
Yes, in the same sense that any language with first class functions can.

So, like:

   var SomeFunc = RequireAuth(func(...) {
        ...
   });
However, there's no language-level support, so you can't decorate methods as easily as you might in a language like Python.