1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-10 07:42:27 +08:00

update readme file

This commit is contained in:
dudaodong
2022-03-16 19:39:21 +08:00
parent bb03f31a8b
commit 76c941cff0
2 changed files with 6 additions and 7 deletions

View File

@@ -29,7 +29,7 @@ English | [简体中文](./README_zh-CN.md)
- 🌍 Unit test for every exported function.
## Installation
<b style="color:red;">note:</b>
### Note:
1. <b>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 </b>
```go
@@ -38,7 +38,7 @@ go get github.com/duke-git/lancet // Default installation will be latest version
2. <b>For users who use version below go1.18, you should install v1.x.x. now latest v1 is v1.2.6. </b>
```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