diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 143d5c0..635b33c 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -21,7 +21,7 @@ jobs: go-version-file: "go.mod" - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v4 - name: Build run: go build -v ./... diff --git a/cmd/forward.go b/cmd/forward.go index 27896a2..3511c91 100644 --- a/cmd/forward.go +++ b/cmd/forward.go @@ -12,13 +12,13 @@ import ( var forwardCmd = &cobra.Command{ Use: "forward ", Short: "Forward requests to a different URL, logging all requests and responses", - Args: func(cmd *cobra.Command, args []string) error { + Args: func(_ *cobra.Command, args []string) error { if len(args) < 1 { return errors.New("requires a target url argument") } return nil }, - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(_ *cobra.Command, args []string) error { r := router() r.HandleFunc("/{path:.*}", handler.ForwardFor(args[0], disableLogger, withTLS())) diff --git a/cmd/root.go b/cmd/root.go index 959c068..4ea467a 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -32,7 +32,7 @@ var rootCmd = &cobra.Command{ Use: "request-logger", Version: version.Version, Short: "A Simple webserver allowing to log incoming requests", - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(_ *cobra.Command, _ []string) error { var config *conf.Conf var err error if configFile != "" {