https://github.com/konstantin8105/binaryexpr
check *ast.BinaryExpr in golang code
https://github.com/konstantin8105/binaryexpr
codestyle error-handling golang
Last synced: 11 months ago
JSON representation
check *ast.BinaryExpr in golang code
- Host: GitHub
- URL: https://github.com/konstantin8105/binaryexpr
- Owner: Konstantin8105
- License: mit
- Created: 2020-07-21T07:58:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-21T21:09:11.000Z (over 5 years ago)
- Last Synced: 2025-01-23T06:14:33.409Z (about 1 year ago)
- Topics: codestyle, error-handling, golang
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# binaryexpr
check *ast.BinaryExpr in golang code in according to number axis
Example of number axis(numbers from left to right):
```
-|---|---|---|---|---|--->
-2 -1 0 1 2 3
```
```
Invalid comparing:
if a >= 5 ....
if b > c ....
d := b > a
```
```
Valid comparing:
if 5 <= a ...
if c < b ...
d := a < b
```