This commit is contained in:
2024-12-29 23:51:00 +07:00
parent b222a44833
commit d4ef9b3ec6

View File

@@ -22,6 +22,7 @@ func init() {
}
func run(pass *analysis.Pass) (any, error) {
// TODO: move in new function
for _, file := range pass.Files {
ast.Inspect(file, func(node ast.Node) bool {
typeSpec, ok := node.(*ast.TypeSpec)