diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a4b28f2..9384766 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,6 +12,7 @@ jobs: - name: Lint uses: golangci/golangci-lint-action@v6 with: + version: v1.64 only-new-issues: true test: diff --git a/.golangci.yml b/.golangci.yml index 7edb476..0bbaa91 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,5 +1,5 @@ run: - deadline: 240s + timeout: 240s tests: true linters: diff --git a/goutil/goutil.go b/goutil/goutil.go index 0214518..020380d 100644 --- a/goutil/goutil.go +++ b/goutil/goutil.go @@ -255,6 +255,12 @@ start: return t.Name case *ast.SelectorExpr: return t.Sel.Name + case *ast.IndexExpr: + f = t.X + goto start + case *ast.IndexListExpr: + f = t.X + goto start default: panic(fmt.Sprintf("can't get name for %#v", f)) }