25-go-parser

command
v0.0.0-...-cba17b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

README

What's the most common local and global variable name and in the Go stdlib?

The second episode of the miniseries on program analysis covers go/scanner and ASTs to answer a similar question to the previous episode.

What is the most common name, but this time not for all identifiers but comparing those of local variables versus those that are defined at package leve.

References:

Documentation

Overview

parser parses the go programs in the given paths and prints the top five most common names of local variables and variables defined at package level.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL