1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-23 22:04:49 +02:00

feature: add support of datastore struct tags in struct-tag rume (#1240)

This commit is contained in:
chavacava
2025-02-18 13:09:31 +01:00
committed by GitHub
parent 3cf67c5783
commit a4ee892836
4 changed files with 46 additions and 10 deletions

View File

@@ -136,3 +136,8 @@ type RequestQueryOption struct {
Archived bool `url:"archived,myURLOption"` // MATCH /unknown option 'myURLOption' in URL tag/
IDProperty string `url:"idProperty,omitempty"`
}
type Fields struct {
Field string `datastore:",noindex,flatten,omitempty"`
OtherField string `datastore:",unknownOption"` // MATCH /unknown option 'unknownOption' in Datastore tag/
}