Skip to content

Commit

Permalink
docs: exhaustivestruct example explanation (golangci#1985)
Browse files Browse the repository at this point in the history
  • Loading branch information
butuzov authored May 15, 2021
1 parent 20b6515 commit 42a3299
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .golangci.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 42a3299

Please sign in to comment.