Learn Backend Development Part-Time, Online
Lead AI Strategy with UCSB's Agentic AI Program — Microsoft Certified
Overview
Google, IBM & Meta Certificates – 40% Off
One plan covers every Professional Certificate on Coursera.
Unlock All Certificates
Learn how to create a custom static analyzer for Go code to catch preventable errors before they reach production. This conference talk from GopherCon 2021 guides you through the process of developing a tool that can identify and flag potential bugs during the development phase. Explore techniques for iterating over assignment statements, defining closer and error types, handling defers and errors, and implementing a single checker. By the end of this 32-minute presentation, gain the knowledge to build your own static analysis tool and improve your Go codebase's quality and reliability.
Syllabus
Introduction
Writing a static analysis tool
Run method
Check for assignment statement
Iterating over assignment statement
Defining closer and error types
Checking for close
Improving close
Handling defer
Handling errors
Close function
Single checker
Conclusion
Taught by
Gopher Academy