Is there something like Nestjs Decorators?

Hello, i want something like this https://docs.nestjs.com/openapi/decorators
i want to use decorators like nestjs for Auth ect…
Is there any package?

In Go, the equivalent pattern would be to write a middleware function.

See https://www.alexedwards.net/blog/making-and-using-middleware

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.