Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to restrict the use of keywords go ? #1

Open
x-lambda opened this issue Sep 11, 2023 · 1 comment
Open

How to restrict the use of keywords go ? #1

x-lambda opened this issue Sep 11, 2023 · 1 comment

Comments

@x-lambda
Copy link

Hi, I have a doubt. When I develop it with my co-worker, I don't want anyone to use the go func() directly. how do i limit them ?

@gregwebs
Copy link
Owner

gregwebs commented Oct 4, 2023

Sorry I missed this issue being opened. This must be handled by code analysis. A linter could provide a warning. If you look at the codemod directory, I have some source code analyzers that auto-convert to use go-recovery. So on a CI server these could be ran to produce a warning (I forget if there are options for that or if you would have to modify and run a git dirty check).

Catching some errors is better than none though, so I don't see this as a reason to not use this library where you are able to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants