docs: exhaustivestruct example explanation (#1985)

This commit is contained in:
Oleg Butuzov 2021-05-15 16:45:59 +03:00 committed by GitHub
parent 20b6515ce3
commit 42a3299184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,11 +134,13 @@ linters-settings:
default-signifies-exhaustive: false
exhaustivestruct:
# Struct Patterns is list of expressions to match struct packages and names
# The struct packages have the form example.com/package.ExampleStruct
# The matching patterns can use matching syntax from https://pkg.go.dev/path#Match
# If this list is empty, all structs are tested.
struct-patterns:
- '*.Test'
- '*.Test2'
- '*.Embedded'
- '*.External'
- 'example.com/package.ExampleStruct'
forbidigo:
# Forbid the following identifiers