From 76c941cff0fbd0a0bacd2b2afec97078090db6f7 Mon Sep 17 00:00:00 2001 From: dudaodong Date: Wed, 16 Mar 2022 19:39:21 +0800 Subject: [PATCH] update readme file --- README.md | 4 ++-- README_zh-CN.md | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index a910044..f9471e2 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ English | [简体中文](./README_zh-CN.md) - 🌍 Unit test for every exported function. ## Installation -note: +### Note: 1. For users who use go1.18 and above, it is recommended to install lancet v2.x.x. Cause v2.x.x rewrite all functions with generics of go1.18. Default installation will be latest version of v2.x.x ```go @@ -38,7 +38,7 @@ go get github.com/duke-git/lancet // Default installation will be latest version 2. For users who use version below go1.18, you should install v1.x.x. now latest v1 is v1.2.6. ```go -go get github.com/duke-git/lancet@1.2.6 // below go1.18, install latest version of v1.x.x +go get github.com/duke-git/lancet@v1.2.6 // below go1.18, install latest version of v1.x.x ``` ## Usage diff --git a/README_zh-CN.md b/README_zh-CN.md index 6b29945..0531c4c 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -29,17 +29,16 @@ - 🌍 所有导出函数单元测试覆盖率100% ## 安装 - -note: +### Note: 1. 对于使用go1.18及以上的用户,建议安装lancet v2.x.x。 因为v2.x.x用go1.18的泛型重写了所有函数。 默认安装将是最新版本的v2.x.x ```go -go get github.com/duke-git/lancet //默认安装最新版本的v2.x.x +go get github.com/duke-git/lancet //默认安装v2最新版本v2.x.x ``` -2. 使用go1.18以下版本的用户,必须安装v1.x.x。 目前最新的v1版本是v1.2.6。 +2. 使用go1.18以下版本的用户,必须安装v1.x.x。目前最新的v1版本是v1.2.6。 ```go -go get github.com/duke-git/lancet@1.2.6 // 使用go1.18以下版本, 必须按照v1最新版本 +go get github.com/duke-git/lancet@v1.2.6 // 使用go1.18以下版本, 必须安装v1.x.x版本 ``` ## 用法