mirror of
https://github.com/mgechev/revive.git
synced 2025-11-23 22:04:49 +02:00
feature: struct-tag warns on (useless) options on ignored fields (#1487)
This commit is contained in:
6
testdata/struct_tag.go
vendored
6
testdata/struct_tag.go
vendored
@@ -192,7 +192,7 @@ type PropertiesTags struct {
|
||||
type SpannerUser struct {
|
||||
ID int `spanner:"user_id"`
|
||||
Name string `spanner:"full_name"`
|
||||
Email string `spanner:"-"` // Valid: ignore field
|
||||
Email string `spanner:"-"` // Valid: ignore field
|
||||
CreatedAt time.Time `spanner:"created_at"`
|
||||
UpdatedAt time.Time `spanner:"updated_at,unknown"` // MATCH /unknown option "unknown" in spanner tag/
|
||||
}
|
||||
UpdatedAt time.Time `spanner:"updated_at,unknown"` // MATCH /unknown option "unknown" in spanner tag/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user