diff --git a/README.md b/README.md index f6ca686..e1daef2 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,6 @@ func main() { - [Validator](#user-content-validator) - [Xerror](#user-content-xerror) -

1. Algorithm package implements some basic algorithm. eg. sort, search.        index

```go @@ -587,7 +586,6 @@ import "github.com/duke-git/lancet/v2/datetime" [[doc](https://github.com/duke-git/lancet/blob/main/docs/datetime.md#TimestampNano)] [[play](https://go.dev/play/p/A9Oq_COrcCF)] -

8. Datastructure package constains some common data structure. eg. list, linklist, stack, queue, set, tree, graph.        index

```go @@ -843,7 +841,7 @@ import "github.com/duke-git/lancet/v2/maputil" - **IsDisjoint** : check two map are disjoint if they have no keys in common. [[doc](https://github.com/duke-git/lancet/blob/main/docs/maputil.md#IsDisjoint)] [[play](https://go.dev/play/p/N9qgYg_Ho6f)] -- **HasKey** : checks if map has key or not. +- **HasKey** : checks if map has key or not. [[doc](https://github.com/duke-git/lancet/blob/main/docs/maputil.md#HasKey)] [[play](https://go.dev/play/p/isZZHOsDhFc)] - **NewConcurrentMap** : creates a ConcurrentMap with specific shard count. @@ -861,7 +859,7 @@ import "github.com/duke-git/lancet/v2/maputil" - **ConcurrentMap_Delete** : delete the value for a key. [[doc](https://github.com/duke-git/lancet/blob/main/docs/maputil.md#ConcurrentMap_Delete)] [[play](https://go.dev/play/p/uTIJZYhpVMS)] -- **ConcurrentMap_GetAndDelete** :returns the existing value for the key if present and then delete the value for the key. +- **ConcurrentMap_GetAndDelete** :returns the existing value for the key if present and then delete the value for the key. [[doc](https://github.com/duke-git/lancet/blob/main/docs/maputil.md#ConcurrentMap_GetAndDelete)] [[play](https://go.dev/play/p/ZyxeIXSZUiM)] - **ConcurrentMap_Has** : checks if map has the value for a key. @@ -871,7 +869,6 @@ import "github.com/duke-git/lancet/v2/maputil" [[doc](https://github.com/duke-git/lancet/blob/main/docs/maputil.md#ConcurrentMap_Range)] [[play](https://go.dev/play/p/iqcy7P8P0Pr)] -

13. Mathutil package implements some functions for math calculation.        index

```go @@ -952,6 +949,9 @@ import "github.com/duke-git/lancet/v2/mathutil" - **Sum** : return sum of passed numbers. [[doc](https://github.com/duke-git/lancet/blob/main/docs/mathutil.md#Sum)] [[play](https://go.dev/play/p/1To2ImAMJA7)] +- **Abs** : returns the absolute value of param nubmer. + [[doc](https://github.com/duke-git/lancet/blob/main/docs/mathutil.md#Sum)] + [[play](https://go.dev/play/p/fsyBh1Os-1d)]

14. Netutil package contains functions to get net information and send http request.        index

@@ -1326,7 +1326,6 @@ import "github.com/duke-git/lancet/v2/slice" [[doc](https://github.com/duke-git/lancet/blob/main/docs/slice.md#Join)] [[play](https://go.dev/play/p/huKzqwNDD7V)] -

19. Stream package implements a sequence of elements supporting sequential and operations. this package is an experiment to explore if stream in go can work as the way java does. its function is very limited.        index

```go diff --git a/README_zh-CN.md b/README_zh-CN.md index df74f26..ca52519 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -953,6 +953,9 @@ import "github.com/duke-git/lancet/v2/mathutil" - **Sum** : 求传入参数之和。 [[doc](https://github.com/duke-git/lancet/blob/main/docs/mathutil_zh-CN.md#Sum)] [[play](https://go.dev/play/p/1To2ImAMJA7)] +- **Abs** : 求绝对值。 + [[doc](https://github.com/duke-git/lancet/blob/main/docs/mathutil_zh-CN.md#Sum)] + [[play](https://go.dev/play/p/fsyBh1Os-1d)]

14. netutil 网络包支持获取 ip 地址,发送 http 请求。       回到目录