This npm package provides binary golangci-lint-helper which can be used with lint-staged to lint staged Go files.
golangci-lint expects to have package names as arguments, but lint-staged provides file names. This package converts file names to package names and passes them to golangci-lint.