Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add badges #3

Merged
merged 1 commit into from
Mar 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Validator for Go
[![Run Tests](https://github.com/x-validator/validator/actions/workflows/test.yml/badge.svg)](https://github.com/x-validator/validator/actions/workflows/test.yml) [![Release](https://img.shields.io/github/release/x-validator/validator.svg?style=flat-square)](https://github.com/x-validator/validator/releases) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](http://opensource.org/licenses/MIT)
[![Run Tests](https://github.com/x-validator/validator/actions/workflows/test.yml/badge.svg)](https://github.com/x-validator/validator/actions/workflows/test.yml) [![Release](https://img.shields.io/github/release/x-validator/validator.svg?style=flat-square)](https://github.com/x-validator/validator/releases) ![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/x-validator/validator/total) ![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/x-validator/validator) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](http://opensource.org/licenses/MIT)

一个适用于国内生态的go验证器代码库,支持如下一些验证场景:

Expand All @@ -25,7 +25,9 @@ import "github.com/x-validator/validator"
然后执行 `go [build|run|test]` 就会自动下载该依赖;或者手动下载依赖:

```shell
$ go get -u github.com/x-validator/validator
$ export GOPROXY=https://goproxy.cn,direct # 设置代理
$ go mod init yourmod # 初始化模块
$ go mod tidy # 下载依赖
```

### API列表
Expand Down
Loading