github.com/nozzle/golangci-lint@v1.49.0-nz3/test/testdata/configs/depguard_additional_guards.yml (about)

     1  linters-settings:
     2    depguard:
     3      list-type: denylist
     4      include-go-root: true
     5      packages: 
     6        - compress/*
     7      packages-with-error-message:
     8        log: "don't use log"
     9      additional-guards:
    10        - list-type: denylist
    11          include-go-root: true
    12          packages:
    13            - fmt
    14          packages-with-error-message:
    15            strings: "disallowed in additional guard"
    16