Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 507 Bytes

README.md

File metadata and controls

16 lines (9 loc) · 507 Bytes

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