chore: format file

main
sudo pacman -Syu 2023-02-25 23:14:43 +07:00
parent 2c8523a857
commit 57e54b79d5
3 changed files with 21 additions and 2 deletions

View File

@ -3,6 +3,9 @@
all: all:
$(MAKE) test-color $(MAKE) test-color
$(MAKE) lint $(MAKE) lint
$(MAKE) format
$(MAKE) build
$(MAKE) clean
go mod tidy go mod tidy
test-color: test-color:
@ -11,3 +14,17 @@ test-color:
lint: lint:
golangci-lint run ./... golangci-lint run ./...
format:
go install github.com/haunt98/gofimports/cmd/gofimports@latest
go install mvdan.cc/gofumpt@latest
go install mvdan.cc/sh/v3/cmd/shfmt@latest
gofimports -w --company github.com/make-go-great,github.com/haunt98 .
gofumpt -w -extra .
build:
$(MAKE) clean
go build ./cmd/update-go-mod
clean:
rm -rf update-go-mod

View File

@ -11,8 +11,9 @@ import (
"os/exec" "os/exec"
"strings" "strings"
"github.com/make-go-great/color-go"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"github.com/make-go-great/color-go"
) )
const ( const (

View File

@ -3,8 +3,9 @@ package cli
import ( import (
"os" "os"
"github.com/make-go-great/color-go"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"github.com/make-go-great/color-go"
) )
const ( const (