goautoimports

command module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 12 Imported by: 0

README

goautoimports

goautoimports is a tool to automatically add missing imports to Go source code.

By default, goautoimports will add following imports to main package:

  • "go.uber.org/automaxprocs"
  • "github.com/KimMachineGun/automemlimit"

Installation

go install github.com/tlipoca9/goautoimports@latest

Usage

goautoimports

Options

$ goautoimports -h
NAME:
   goautoimports - automatically add imports to go files

USAGE:
   goautoimports [global options] command [command options]

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --module value, -m value  (default: main)
   --pkg value, -p value     (default: go.uber.org/automaxprocs,github.com/KimMachineGun/automemlimit)
   --dryrun                  (default: false)
   --help, -h                show help

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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