host.go 145 B

123456789
  1. package statsd
  2. import (
  3. "strings"
  4. )
  5. func HostKey(h string) string {
  6. return strings.Replace(strings.Replace(h, ".", "_", -1), ":", "_", -1)
  7. }