mirror of
https://github.com/unti-io/go-utils.git
synced 2025-10-06 00:36:57 +08:00
[v1.4.2] ToStringMap
This commit is contained in:
@@ -180,6 +180,12 @@ func (this *AsciiStruct) ToString(params map[string]any) (result string) {
|
||||
}
|
||||
}
|
||||
|
||||
// 去除最后一个 &
|
||||
text := item.String()
|
||||
if len(text) > 0 {
|
||||
text = text[:len(text)-1]
|
||||
}
|
||||
|
||||
// 返回排序后的字符串
|
||||
return item.String()
|
||||
return text
|
||||
}
|
Reference in New Issue
Block a user