(key string)
| 577 | } |
| 578 | |
| 579 | func keyValid(key string) bool { |
| 580 | if len(key) == 0 || key[0] == '.' || key[len(key)-1] == '.' { |
| 581 | return false |
| 582 | } |
| 583 | return validKeyRe.MatchString(key) |
| 584 | } |
| 585 | |
| 586 | func searchKeyValid(key string) bool { |
| 587 | if len(key) == 0 || key[0] == '.' || key[len(key)-1] == '.' { |