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