Skip to content

Commit 047ef05

Browse files
authored
Merge pull request #108 from bmf-san/feature/add-govulncheck
Add govulncheck
2 parents 4a8a907 + 0d535ba commit 047ef05

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.circleci/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ jobs:
5454
- run:
5555
name: "Run benchstat"
5656
command: make benchstat
57+
- run:
58+
name: "Run govulncheck"
59+
command: make govulncheck
5760
- run:
5861
name: Build go
5962
command: go build

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ endif
2222
ifeq ($(shell command -v benchstat 2> /dev/null),)
2323
go install golang.org/x/perf/cmd/benchstat@latest
2424
endif
25+
ifeq ($(shell govulncheck ./... 2> /dev/null),)
26+
go install golang.org/x/vuln/cmd/govulncheck@latest
27+
endif
2528

2629
.PHONY: gofmt
2730
gofmt: ## Run gofmt.
@@ -47,6 +50,10 @@ staticcheck: ## Run staticcheck.
4750
gosec: ## Run gosec.
4851
gosec -exclude-dir=_examples ./...
4952

53+
.PHONY: govulncheck
54+
govulncheck: ## Run govulncheck.
55+
govulncheck ./...
56+
5057
.PHONY: test
5158
test: ## Run tests.
5259
go test -v -race ./...

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,13 @@ This logo was created by [gopherize.me](https://gopherize.me/gopher/d654ddf2b81c
3333
- [Design](#design)
3434
- [Contribution](#contribution)
3535
- [Sponsor](#sponsor)
36+
- [Stargazers](#stargazers)
37+
- [Forkers](#forkers)
3638
- [License](#license)
3739
- [Author](#author)
3840

3941
# Features
42+
- Go1.20 >= 1.16
4043
- Simple data structure based on trie tree
4144
- Lightweight
4245
- Lines of codes: 2428

0 commit comments

Comments
 (0)