1
0
mirror of https://github.com/TwiN/gatus.git synced 2026-02-04 21:04:43 +00:00

Minor update

This commit is contained in:
TwiN
2021-12-13 19:23:35 -05:00
parent 00aec70fb8
commit eb9acef9b5

View File

@@ -3,8 +3,8 @@ package util
import "strings"
// ConvertGroupAndEndpointNameToKey converts a group and an endpoint to a key
func ConvertGroupAndEndpointNameToKey(group, endpoint string) string {
return sanitize(group) + "_" + sanitize(endpoint)
func ConvertGroupAndEndpointNameToKey(groupName, endpointName string) string {
return sanitize(groupName) + "_" + sanitize(endpointName)
}
func sanitize(s string) string {