From 805f9dd5ddb3837e638e9aa1e15aa54417a32780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=B6=8A?= <1414101921@qq.com> Date: Fri, 24 Nov 2023 15:25:56 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E2=9C=8F=EF=B8=8F=20=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E5=90=8D=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/parse.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/parse.go b/common/parse.go index c7cf95f..0237137 100644 --- a/common/parse.go +++ b/common/parse.go @@ -55,15 +55,15 @@ func ParseInfo(infoString string) (result map[string]map[string]interface{}) { } else { floatValue, err := strconv.ParseFloat(strings.TrimSpace(items[1]), 10) - var vlaue interface{} = strings.TrimSpace(items[1]) + var value interface{} = strings.TrimSpace(items[1]) if err == nil { - vlaue = floatValue + value = floatValue } if _, ok := result[section]; ok { - result[section][items[0]] = vlaue + result[section][items[0]] = value } else { result[section] = map[string]interface{}{ - items[0]: vlaue, + items[0]: value, } } }