unusedimports

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: Apache-2.0, BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package unusedimports provides the import pruning features of the `goimports` command in library form. Intended usage is for code generator libraries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PruneUnparsed

func PruneUnparsed(filename, src string) (string, error)

PruneUnparsed parses a Go file and removes unused imports.

The filename argument is used only for printing error messages.

Types

This section is empty.

Jump to

Keyboard shortcuts

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