Skip to content

Commit

Permalink
Merge pull request #204 from twpayne/update-lint
Browse files Browse the repository at this point in the history
Update golangci-lint to 1.40.1
  • Loading branch information
twpayne committed Jun 2, 2021
2 parents 68be081 + 7a8b0f4 commit 25827fa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ linters:
- gofmt
- gofumpt
- goimports
- golint
- gomoddirectives
- gomodguard
- goprintffuncname
Expand All @@ -38,12 +37,14 @@ linters:
- nolintlint
- prealloc
- predeclared
- promlinter
- revive
- rowserrcheck
- sqlclosecheck
- staticcheck
- structcheck
- stylecheck
- tagliatelle
- thelper
- tparallel
- typecheck
Expand All @@ -62,6 +63,7 @@ linters:
- gocognit
- goconst
- gocyclo
- godox
- goheader
- godox
- gomnd
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GOLANGCI_LINT_VERSION=1.39.0
GOLANGCI_LINT_VERSION=1.40.1

.PHONY: all
all: test lint
Expand Down
4 changes: 2 additions & 2 deletions encoding/wkt/wkt.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ func NewEncoder(applyOptFns ...EncodeOption) *Encoder {
return encoder
}

// EncodeOptions specify options to apply to the encoder.
// An EncodeOption is an encoder option.
type EncodeOption func(*Encoder)

// EncodeWithMaxDecimalDigits sets the maximum decimal digits to encode.
// EncodeOptionWithMaxDecimalDigits sets the maximum decimal digits to encode.
func EncodeOptionWithMaxDecimalDigits(maxDecimalDigits int) EncodeOption {
return func(e *Encoder) {
e.maxDecimalDigits = maxDecimalDigits
Expand Down

0 comments on commit 25827fa

Please sign in to comment.