friendica-exporter/serverinfo/url.go

12 lines
200 B
Go
Raw Permalink Normal View History

2024-10-24 20:26:41 +02:00
package serverinfo
import "fmt"
const (
statsPathFormat = "%s/stats?key=%v"
)
func StatsURL(serverUrl string, StatsKey string) string {
return fmt.Sprintf(statsPathFormat, serverUrl, StatsKey)
}