Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Writing a Static Analyzer for Go Code

Gopher Academy via YouTube

Overview

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

Reviews

Start your review of Writing a Static Analyzer for Go Code

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.