docs: exhaustivestruct example explanation (#1985)
This commit is contained in:
parent
20b6515ce3
commit
42a3299184
@ -134,11 +134,13 @@ linters-settings:
|
|||||||
default-signifies-exhaustive: false
|
default-signifies-exhaustive: false
|
||||||
|
|
||||||
exhaustivestruct:
|
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:
|
struct-patterns:
|
||||||
- '*.Test'
|
- '*.Test'
|
||||||
- '*.Test2'
|
- 'example.com/package.ExampleStruct'
|
||||||
- '*.Embedded'
|
|
||||||
- '*.External'
|
|
||||||
|
|
||||||
forbidigo:
|
forbidigo:
|
||||||
# Forbid the following identifiers
|
# Forbid the following identifiers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user