An open API service indexing awesome lists of open source software.

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

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
```