From e3b5c680709ec45944dee783c1bc3bb0e932dbd4 Mon Sep 17 00:00:00 2001 From: Vyacheslav Pryimak Date: Tue, 4 Aug 2020 16:48:58 +0300 Subject: [PATCH] docs added --- doc.go | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 doc.go diff --git a/doc.go b/doc.go new file mode 100644 index 0000000..ba6c4b0 --- /dev/null +++ b/doc.go @@ -0,0 +1,35 @@ +// Tool for Golang to sort goimports by 3 groups: std, general and project dependencies. +// It will help you to keep your code cleaner. +// +// Example: +// goimports-reviser -project-name github.com/incu6us/goimports-reviser -file-path ./reviser/reviser.go -rm-unused +// +// Input: +// import ( +// "log" +// +// "github.com/incu6us/goimports-reviser/testdata/innderpkg" +// +// "bytes" +// +// "github.com/pkg/errors" +// ) +// +// Output: +// +// import ( +// "bytes" +// "log" +// +// "github.com/pkg/errors" +// +// "github.com/incu6us/goimports-reviser/testdata/innderpkg" +// ) +// +// If you need to set package names explicitly(in import declaration), you can use additional option `-set-alias`. +// +// More: +// +// goimports-reviser -h +// +package main