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:
5
testdata/struct_tag.go
vendored
5
testdata/struct_tag.go
vendored
@@ -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/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user