chore: format this project using this project :)
parent
d5d0bfc7ea
commit
07458099e9
4
Makefile
4
Makefile
|
@ -23,8 +23,10 @@ lint:
|
|||
golangci-lint run ./...
|
||||
|
||||
format:
|
||||
go install github.com/haunt98/gofimports/cmd/gofimports@latest
|
||||
go install mvdan.cc/gofumpt@latest
|
||||
gofumpt -l -w -extra .
|
||||
gofimports -w -company github.com/make-go-great .
|
||||
gofumpt -w -extra .
|
||||
|
||||
build:
|
||||
go build ./cmd/gofimports
|
||||
|
|
15
README.md
15
README.md
|
@ -28,6 +28,21 @@ go install github.com/haunt98/gofimports/cmd/gofimports@latest
|
|||
gofimports -l -company github.com/make-go-great -w -d ./internal
|
||||
```
|
||||
|
||||
Example result:
|
||||
|
||||
```go
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/urfave/cli/v2"
|
||||
"github.com/pkg/diff"
|
||||
|
||||
"github.com/make-go-great/color-go"
|
||||
|
||||
"github.com/haunt98/gofimports/internal/imports"
|
||||
)
|
||||
```
|
||||
|
||||
## Roadmap
|
||||
|
||||
- [ ] Diff with color
|
||||
|
|
|
@ -3,8 +3,9 @@ package cli
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/haunt98/gofimports/internal/imports"
|
||||
"github.com/urfave/cli/v2"
|
||||
|
||||
"github.com/haunt98/gofimports/internal/imports"
|
||||
)
|
||||
|
||||
type action struct {
|
||||
|
|
|
@ -3,8 +3,9 @@ package cli
|
|||
import (
|
||||
"os"
|
||||
|
||||
"github.com/make-go-great/color-go"
|
||||
"github.com/urfave/cli/v2"
|
||||
|
||||
"github.com/make-go-great/color-go"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
Loading…
Reference in New Issue