NamespaceAndName returns namespace and name by parsing repository path
()
| 81 | |
| 82 | // NamespaceAndName returns namespace and name by parsing repository path |
| 83 | func (r CollectionRepository) NamespaceAndName() (namespace string, name string) { |
| 84 | fields := strings.Split(r.Path, "/") |
| 85 | return fields[0], fields[1] |
| 86 | } |
| 87 | |
| 88 | type CollectionFilter struct { |
| 89 | Sort string |
no outgoing calls
no test coverage detected