-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from wojas/add-close
Add Close() receiver and go.mod
- Loading branch information
Showing
7 changed files
with
447 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# See https://github.com/golangci/golangci-lint/blob/master/.golangci.yml for more examples | ||
|
||
linters: | ||
enabled: | ||
# In addition to default standard linters (see: golangci-lint help linters) | ||
# Try extra ones line this: golangci-lint run --disable-all --enable=lll | ||
- goimports | ||
# For future consideration (requires some extra work, but suggestions look useful) | ||
# - gocritic | ||
# - golint # can sometimes be a bit pedantic | ||
# - lll | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
sudo: false | ||
language: go | ||
before_script: | ||
- go get github.com/golangci/golangci-lint/cmd/golangci-lint | ||
- go install github.com/golangci/golangci-lint/cmd/golangci-lint | ||
env: | ||
- GO111MODULE=on | ||
go: | ||
- 1.x # latest version | ||
- 1.12 # lowest supported version | ||
script: | ||
- golangci-lint run --enable-all # this is excessive but we get away with it for now | ||
- ./test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module github.com/PowerDNS/go-dnsdist-client | ||
|
||
go 1.14 | ||
|
||
require ( | ||
github.com/golangci/golangci-lint v1.27.0 | ||
golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
set -ex | ||
go test ./... | ||
go run github.com/golangci/golangci-lint/cmd/golangci-lint run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// +build tools | ||
|
||
package tools | ||
|
||
import ( | ||
_ "github.com/golangci/golangci-lint/cmd/golangci-lint" | ||
) |