From 47b2402345df74153fc96c894bd096cfc69bf2b1 Mon Sep 17 00:00:00 2001 From: dudaodong Date: Wed, 13 Jul 2022 10:32:03 +0800 Subject: [PATCH] docs: update readme file add new functions --- README.md | 5 +++++ README_zh-CN.md | 2 ++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 631163f..f328f06 100644 --- a/README.md +++ b/README.md @@ -118,12 +118,15 @@ import "github.com/duke-git/lancet/v2/convertor" - [ToBool](https://github.com/duke-git/lancet/blob/main/docs/convertor.md#ToBool) - [ToBytes](https://github.com/duke-git/lancet/blob/main/docs/convertor.md#ToBytes) - [ToChar](https://github.com/duke-git/lancet/blob/main/docs/convertor.md#ToChar) +- [ToChannel](https://github.com/duke-git/lancet/blob/main/docs/convertor.md#ToChannel) - [ToFloat](https://github.com/duke-git/lancet/blob/main/docs/convertor.md#ToFloat) - [ToInt](https://github.com/duke-git/lancet/blob/main/docs/convertor.md#ToInt) - [ToJson](https://github.com/duke-git/lancet/blob/main/docs/convertor.md#ToJson) +- [ToMap](https://github.com/duke-git/lancet/blob/main/docs/convertor.md#ToMap) - [ToPointer](https://github.com/duke-git/lancet/blob/main/docs/convertor.md#ToPointer) - [ToString](https://github.com/duke-git/lancet/blob/main/docs/convertor.md#ToString) - [StructToMap](https://github.com/duke-git/lancet/blob/main/docs/convertor.md#StructToMap) +- [MapToSlice](https://github.com/duke-git/lancet/blob/main/docs/convertor.md#MapToSlice) ### 4. Cryptor package is for data encryption and decryption. @@ -324,7 +327,9 @@ import "github.com/duke-git/lancet/v2/netutil" - [GetIps](https://github.com/duke-git/lancet/blob/main/docs/netutil.md#GetIps) - [GetMacAddrs](https://github.com/duke-git/lancet/blob/main/docs/netutil.md#GetMacAddrs) - [GetPublicIpInfo](https://github.com/duke-git/lancet/blob/main/docs/netutil.md#GetPublicIpInfo) +- [GetRequestPublicIp](https://github.com/duke-git/lancet/blob/main/docs/netutil.md#GetRequestPublicIp) - [IsPublicIP](https://github.com/duke-git/lancet/blob/main/docs/netutil.md#IsPublicIP) +- [IsInternalIP](https://github.com/duke-git/lancet/blob/main/docs/netutil_zh-CN.md#IsInternalIP) - [HttpGet](https://github.com/duke-git/lancet/blob/main/docs/netutil.md#HttpGet) - [HttpDelete](https://github.com/duke-git/lancet/blob/main/docs/netutil.md#HttpDelete) - [HttpPost](https://github.com/duke-git/lancet/blob/main/docs/netutil.md#HttpPost) diff --git a/README_zh-CN.md b/README_zh-CN.md index f0367ec..839aa08 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -117,9 +117,11 @@ import "github.com/duke-git/lancet/v2/convertor" - [ToBool](https://github.com/duke-git/lancet/blob/main/docs/convertor_zh-CN.md#ToBool) - [ToBytes](https://github.com/duke-git/lancet/blob/main/docs/convertor_zh-CN.md#ToBytes) - [ToChar](https://github.com/duke-git/lancet/blob/main/docs/convertor_zh-CN.md#ToChar) +- [ToChannel](https://github.com/duke-git/lancet/blob/main/docs/convertor_zh-CN.md#ToChannel) - [ToFloat](https://github.com/duke-git/lancet/blob/main/docs/convertor_zh-CN.md#ToFloat) - [ToInt](https://github.com/duke-git/lancet/blob/main/docs/convertor_zh-CN.md#ToInt) - [ToJson](https://github.com/duke-git/lancet/blob/main/docs/convertor_zh-CN.md#ToJson) +- [ToMap](https://github.com/duke-git/lancet/blob/main/docs/convertor_zh-CN.md#ToMap) - [ToPointer](https://github.com/duke-git/lancet/blob/main/docs/convertor_zh-CN.md#ToPointer) - [ToString](https://github.com/duke-git/lancet/blob/main/docs/convertor_zh-CN.md#ToString) - [StructToMap](https://github.com/duke-git/lancet/blob/main/docs/convertor_zh-CN.md#StructToMap)