(s string)
| 877 | } |
| 878 | |
| 879 | func isValidTag(s string) bool { |
| 880 | if s == "" { |
| 881 | return false |
| 882 | } |
| 883 | for _, c := range s { |
| 884 | switch { |
| 885 | case strings.ContainsRune("!#$%&()*+-./:;<=>?@[]^_{|}~ ", c): |
| 886 | // Backslash and quote chars are reserved, but |
| 887 | // otherwise any punctuation chars are allowed |
| 888 | // in a tag name. |
| 889 | default: |
| 890 | if !unicode.IsLetter(c) && !unicode.IsDigit(c) { |
| 891 | return false |
| 892 | } |
| 893 | } |
| 894 | } |
| 895 | return true |
| 896 | } |
| 897 | |
| 898 | func emptyFuncOf(t reflect.Type) emptyFunc { |
| 899 | switch t { |
no outgoing calls
no test coverage detected
searching dependent graphs…