Browse Source

Update 'README.md'

天问 2 weeks ago
parent
commit
9201f3fefd
1 changed files with 19 additions and 1 deletions
  1. 19 1
      README.md

+ 19 - 1
README.md

@@ -1,3 +1,21 @@
 # golangci-lint
 
-golang lint
+golang lint, 检查go项目代码错误
+
+## Usage
+
+```
+# binary will be $(go env GOPATH)/bin/golangci-lint
+curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.57.2
+
+golangci-lint run
+```
+
+或者docker运行:
+```
+docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.57.2 golangci-lint run -v
+```
+
+推荐 docker方式即插即用。
+
+