From f9fe5afdfd948f670eeca327580d400bcbb618f8 Mon Sep 17 00:00:00 2001 From: Fury Date: Tue, 26 Mar 2024 15:53:18 +0800 Subject: [PATCH] add badges, release v0.1.0 --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 738d70d..9c4b8d8 100644 --- a/README.md +++ b/README.md @@ -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验证器代码库,支持如下一些验证场景: @@ -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列表