parseTag splits a struct field's url tag into its name and comma-separated options.
(tag string)
| 347 | // parseTag splits a struct field's url tag into its name and comma-separated |
| 348 | // options. |
| 349 | func parseTag(tag string) (string, tagOptions) { |
| 350 | s := strings.Split(tag, ",") |
| 351 | return s[0], s[1:] |
| 352 | } |
| 353 | |
| 354 | // Contains checks whether the tagOptions contains the specified option. |
| 355 | func (o tagOptions) Contains(option string) bool { |
no outgoing calls
searching dependent graphs…