You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
168 B

  1. package command
  2. import (
  3. "strings"
  4. )
  5. func escapeKey(key string) string {
  6. if strings.Contains(key, ":") {
  7. return strings.ReplaceAll(key, ":", "")
  8. }
  9. return key
  10. }