Created
April 9, 2020 09:55
-
-
Save vadzappa/b3a9c1dd309136139f013fce21ae4f47 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func logFieldName(prefixes []string) string { | |
filtered := make([]string, 0, len(prefixes)) | |
for _, p := range prefixes { | |
if p != "" { | |
filtered = append(filtered, p) | |
} | |
} | |
return strings.Join(filtered, "_") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment