From 6a8ffb7e474686df60be613879063fded249869b Mon Sep 17 00:00:00 2001 From: bmf-san Date: Fri, 14 Jul 2023 18:52:29 +0900 Subject: [PATCH 1/3] [update] add govulncheck cmd --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index b96cfd6..508959f 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,9 @@ endif ifeq ($(shell command -v benchstat 2> /dev/null),) go install golang.org/x/perf/cmd/benchstat@latest endif +ifeq ($(shell govulncheck ./... 2> /dev/null),) + go install golang.org/x/vuln/cmd/govulncheck@latest +endif .PHONY: gofmt gofmt: ## Run gofmt. @@ -47,6 +50,10 @@ staticcheck: ## Run staticcheck. gosec: ## Run gosec. gosec -exclude-dir=_examples ./... +.PHONY: govulncheck +govulncheck: ## Run govulncheck. + govulncheck ./... + .PHONY: test test: ## Run tests. go test -v -race ./... From 358ca7af38f1b4cd66751264c191ea7662e1b54c Mon Sep 17 00:00:00 2001 From: bmf-san Date: Fri, 14 Jul 2023 18:52:45 +0900 Subject: [PATCH 2/3] [update] add govulncheck cmd to ci --- .circleci/config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9377e95..196e705 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -54,6 +54,9 @@ jobs: - run: name: "Run benchstat" command: make benchstat + - run: + name: "Run govulncheck" + command: make govulncheck - run: name: Build go command: go build From 0d535ba127d803db644eba264f8e7327d1550865 Mon Sep 17 00:00:00 2001 From: bmf-san Date: Fri, 14 Jul 2023 18:53:08 +0900 Subject: [PATCH 3/3] [fix] add supports go versions to README for en --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index fb35516..d8744e4 100644 --- a/README.md +++ b/README.md @@ -33,10 +33,13 @@ This logo was created by [gopherize.me](https://gopherize.me/gopher/d654ddf2b81c - [Design](#design) - [Contribution](#contribution) - [Sponsor](#sponsor) +- [Stargazers](#stargazers) +- [Forkers](#forkers) - [License](#license) - [Author](#author) # Features +- Go1.20 >= 1.16 - Simple data structure based on trie tree - Lightweight - Lines of codes: 2428