mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-24 17:04:42 +01:00
Minor update
This commit is contained in:
parent
00aec70fb8
commit
eb9acef9b5
@ -3,8 +3,8 @@ package util
|
|||||||
import "strings"
|
import "strings"
|
||||||
|
|
||||||
// ConvertGroupAndEndpointNameToKey converts a group and an endpoint to a key
|
// ConvertGroupAndEndpointNameToKey converts a group and an endpoint to a key
|
||||||
func ConvertGroupAndEndpointNameToKey(group, endpoint string) string {
|
func ConvertGroupAndEndpointNameToKey(groupName, endpointName string) string {
|
||||||
return sanitize(group) + "_" + sanitize(endpoint)
|
return sanitize(groupName) + "_" + sanitize(endpointName)
|
||||||
}
|
}
|
||||||
|
|
||||||
func sanitize(s string) string {
|
func sanitize(s string) string {
|
||||||
|
Loading…
Reference in New Issue
Block a user