Rename FieldInfo.Name to Alias (only meaningful for backward-compat entries like albumtype→releasetype) and FieldInfo.alias to tagAlias (tag names from mappings.yml that resolve to existing fields). Add a Name() method that derives the canonical name from the map key, eliminating 60+ redundant Name declarations where the value matched the key. LookupField now populates the private name field automatically. Signed-off-by: Deluan <deluan@navidrome.org> |
||
|---|---|---|
| .. | ||
| criteria.go | ||
| criteria_suite_test.go | ||
| criteria_test.go | ||
| export_test.go | ||
| fields.go | ||
| fields_test.go | ||
| json.go | ||
| operators.go | ||
| operators_test.go | ||
| sort.go | ||
| sort_test.go | ||
| walk.go | ||
| walk_test.go | ||