Skip to content

Commit e42e5b5

Browse files
authored
Merge pull request #16 from ldez/feat/remove-golancgi-lint-mode
feat: remove golangci-lint mode
2 parents e25313b + efd5eb3 commit e42e5b5

23 files changed

+276
-198
lines changed

.github/workflows/main.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v4
1010
with:
1111
fetch-depth: 2
12-
- uses: actions/setup-go@v2
12+
- uses: actions/setup-go@v5
1313
with:
14-
go-version: '1.19'
14+
go-version: stable
1515
- name: Run coverage
1616
run: go test -race -coverprofile=coverage.txt -covermode=atomic
1717
- name: Upload coverage to Codecov
18-
uses: codecov/codecov-action@v3
18+
uses: codecov/codecov-action@v3

.github/workflows/release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,15 @@ jobs:
1515
goreleaser:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
21-
- run: git fetch --force --tags
22-
- uses: actions/setup-go@v4
21+
- uses: actions/setup-go@v5
2322
with:
2423
go-version: stable
2524
# More assembly might be required: Docker logins, GPG, etc. It all depends
2625
# on your needs.
27-
- uses: goreleaser/goreleaser-action@v4
26+
- uses: goreleaser/goreleaser-action@v6
2827
with:
2928
# either 'goreleaser' (default) or 'goreleaser-pro':
3029
distribution: goreleaser

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*.test
1818

1919
.vscode
20+
.idea/
2021

2122
# Output of the go coverage tool, specifically when used with LiteIDE
2223
*.out

.goreleaser.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
version: 2
22
project_name: tagalign
33

44
release:
@@ -29,4 +29,4 @@ builds:
2929
goarch: 386
3030
- goos: freebsd
3131
goarch: arm64
32-
main: ./cmd/tagalign/
32+
main: ./cmd/tagalign/

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/4meepo/tagalign
22

3-
go 1.19
3+
go 1.21.0
44

55
require (
66
github.com/fatih/structtag v1.2.0

options.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@ package tagalign
22

33
type Option func(*Helper)
44

5-
// WithMode specify the mode of tagalign.
6-
func WithMode(mode Mode) Option {
7-
return func(h *Helper) {
8-
h.mode = mode
9-
}
10-
}
11-
125
// WithSort enable tags sort.
136
// fixedOrder specify the order of tags, the other tags will be sorted by name.
147
// Sory is disabled by default.

0 commit comments

Comments
 (0)