From a6c05a513e5bd539935b007d7b3c398a36ee5202 Mon Sep 17 00:00:00 2001 From: zhangxin Date: Wed, 24 Mar 2021 10:52:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=A4=84=E7=90=86urlparamete?= =?UTF-8?q?r=E7=9A=84=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- grmi/DealUrlParams.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 grmi/DealUrlParams.go diff --git a/grmi/DealUrlParams.go b/grmi/DealUrlParams.go new file mode 100644 index 0000000..4296038 --- /dev/null +++ b/grmi/DealUrlParams.go @@ -0,0 +1,19 @@ +/****************************************************************************** + * @Function Name : + *----------------------------------------------------------------------------- + * @Description : + * @Function Parameters: + * @Return Value : + * @Author : Zhang Xin + * @Date : 2021/3/3 11:02 + ******************************************************************************/ +package grmi + + +func DeleteUrlParametersEmpty(urlParameters *map[string]string) { + for key, value := range *urlParameters { + if value == "" { + delete(*urlParameters, key) + } + } +}