@@ -1228,13 +1228,33 @@ _Configuration_: N/A
12281228
12291229## struct -tag
12301230
1231- _Description_: Struct tags are not checked at compile time.
1232- This rule spots errors in struct  tags of the following types:
1233- asn1, bson, datastore, default , json, mapstructure, properties, protobuf, required, spanner, toml, url, validate, xml, yaml.
1234- 
1235- _Configuration_: (optional) list of user defined options.
1231+ _Description_: The rule spots errors in struct  tags.
1232+ This is useful because struct  tags are not checked at compile time.
1233+ 
1234+ The list of [supported tags](https:// go.dev/wiki/Well-known-struct-tags):
1235+ 
1236+ | Tag           | Documentation                                                            |
1237+ | ------------- | ------------------------------------------------------------------------ |
1238+ | ` asn1` // pkg.go.dev/encoding/asn1>                                      |
1239+ | ` bson` // pkg.go.dev/go.mongodb.org/mongo-driver/bson>                   |
1240+ | ` datastore` // pkg.go.dev/cloud.google.com/go/datastore>                      |
1241+ | ` default` type  of " default" type  of the field.                 |
1242+ | ` json` // pkg.go.dev/encoding/json>                                      |
1243+ | ` mapstructure` // pkg.go.dev/github.com/mitchellh/mapstructure>                  |
1244+ | ` properties` // pkg.go.dev/github.com/magiconair/properties#Properties.Decode> |
1245+ | ` protobuf` // github.com/golang/protobuf>                                    |
1246+ | ` required` " true" " false" 
1247+ | ` spanner` // pkg.go.dev/cloud.google.com/go/spanner>                        |
1248+ | ` toml` // pkg.go.dev/github.com/pelletier/go-toml/v2>                    |
1249+ | ` url` // github.com/google/go-querystring>                              |
1250+ | ` validate` // github.com/go-playground/validator>                            |
1251+ | ` xml` // pkg.go.dev/encoding/xml>                                       |
1252+ | ` yaml` // pkg.go.dev/gopkg.in/yaml.v2>                                   |
1253+ 
1254+ _Configuration_: (optional) The list of struct  tags that can be accepted by the rule additionally to the supported tags.
12361255
12371256Configuration example:
1257+ 
12381258To accept the ` inline` tags  (and ` outline` ` gnu` 
12391259
12401260` ` ` toml
0 commit comments