sortimport

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 15 Imported by: 0

README

sortimport

Sort/group imports in golang file

Installation

% go install github.com/CaiJinKen/[email protected]

Usage

% sortimport -file=<filename> -writeback=true -std-out=false
or
% sortimport -file <filename> -writeback -std-out false

Flags:

-file string
    filename
-only-changed
    just print changed line, false will print all info
-std-out
    print info into stdout (default true)
-version string
    print fillstruct version
-writeback
    writeback to the file

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