- zhongwuapi
This commit is contained in:
@@ -393,6 +393,13 @@ func MapKV2List(mapData map[string]interface{}) []map[string]interface{} {
|
||||
return retVal
|
||||
}
|
||||
|
||||
func MapKeys(mapData map[string]interface{}) (keys []string) {
|
||||
for k := range mapData {
|
||||
keys = append(keys, k)
|
||||
}
|
||||
return keys
|
||||
}
|
||||
|
||||
func Format4Output(obj interface{}, isSingleLine bool) (retVal string) {
|
||||
retVal, ok := obj.(string)
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user