mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Refactor formatMap method
This commit is contained in:
		@@ -23,12 +23,12 @@ import (
 | 
				
			|||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// formatMap formats map[string]string to a string.
 | 
					// formatMap formats map[string]string to a string.
 | 
				
			||||||
func formatMap(m map[string]string) string {
 | 
					func formatMap(m map[string]string) (fmtStr string) {
 | 
				
			||||||
	var l string
 | 
					 | 
				
			||||||
	for key, value := range m {
 | 
						for key, value := range m {
 | 
				
			||||||
		l += key + "=" + fmt.Sprintf("%q", value) + "\n"
 | 
							fmtStr += fmt.Sprintf("%v=%q\n", key, value)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return l
 | 
					
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// ExtractFieldPathAsString extracts the field from the given object
 | 
					// ExtractFieldPathAsString extracts the field from the given object
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user