9 func (o tagOptions) Get(name string) (string, bool) {
13 idx := strings.IndexByte(s, ',')
15 s, next = s[:idx], s[idx+1:]
17 if strings.HasPrefix(s, name) {
18 return s[len(name):], true
25 func (o tagOptions) Contains(name string) bool {
30 func parseTag(tag string) (string, tagOptions) {
31 if idx := strings.IndexByte(tag, ','); idx != -1 {
33 if strings.IndexByte(name, ':') == -1 {
34 return name, tagOptions(tag[idx+1:])
38 if strings.IndexByte(tag, ':') == -1 {
41 return "", tagOptions(tag)