Skip to content
/ unused Public

The unused command reports unused constants, variables, types and functions in a go module.

License

Notifications You must be signed in to change notification settings

mgnsk/unused

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The unused command reports unused constants, variables, types and functions in a go module.

Example:

$ unused -generated -exclude-glob '*.pb.go'

The tool can instructed to skip checking usage of objects by using line comments with a // unused:skip prefix on the same or previous line where the unused object is defined.

The // unused:disable comment disables the check after the comment in the current file.

Usage: unused [flags]

Installation

$ go install github.com/mgnsk/unused@latest

About

The unused command reports unused constants, variables, types and functions in a go module.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages