9 func parseTag(tag string) (string, tagOptions) {
10 if idx := strings.Index(tag, ","); idx != -1 {
11 return tag[:idx], tagOptions(tag[idx+1:])
13 return tag, tagOptions("")
16 func (opts tagOptions) contains(option_name string) bool {
24 i := strings.Index(s, ",")
26 s, next = s[:i], s[i+1:]