unexport

command module
v0.0.0-...-b098a8e Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2015 License: BSD-3-Clause Imports: 19 Imported by: 0

README

unexport

Unexport is a tool which unexports nonused exported identifiers. It was created as a part of Go challenge #5. Checkout the examples below

Install

go get github.com/fatih/unexport

Usage and Examples

Unexport exported identifiers in the encoding/pem package:

$ unexport -package encoding/pem

Process the package and display any possible changes. It doesn't unexport exported identifiers because of the -dryrun flag

$ unexport -package github.com/fatih/color -dryrun

Unexport only the "Color" and "Attribute" identifiers from the github.com/fatih/color package. Note that if the identifiers are used by other packages, it'll silently fail

$ unexport -package github.com/fatih/color -identifier "Color,Attribute"

License

The BSD 3-Clause License - see LICENSE for more details

Documentation

Overview

The unexport command unexports exported identifiers which are not imported by any other Go code.

Jump to

Keyboard shortcuts

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