Grokking Advanced Go
Vote

0% completed

​

Writing an Analyzer

The order service stores money as an int64 count of cents, and every engineer on the team knows the rule. Even so, code review keeps finding lines such as float64(it.Cents), each of which can add rounding error to a calculation of money. If a rule matters this much, why should a person have to check it on every change?

A program can check it instead. A static analyzer is a program that examines source code without running it and reports patterns that are likely to be bugs

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content