generated from nano-interactive/go-library-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Dusan Malusev <[email protected]>
- Loading branch information
1 parent
9f77828
commit 039d2d7
Showing
12 changed files
with
224 additions
and
59 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,99 @@ | ||
run: | ||
concurrency: 16 | ||
timeout: 5m | ||
issues-exit-code: 1 | ||
tests: true | ||
|
||
skip-dirs: | ||
- docs/ | ||
- nanodocker/ | ||
- cli/migrations | ||
|
||
skip-files: | ||
- "*_gen\\.go$" | ||
|
||
modules-download-mode: mod | ||
allow-parallel-runners: true | ||
go: '1.21' | ||
|
||
output: | ||
format: colored-line-number | ||
print-issued-lines: true | ||
print-linter-name: true | ||
uniq-by-line: true | ||
sort-results: true | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- asasalint | ||
- bidichk | ||
- bodyclose | ||
- decorder | ||
- dupl | ||
- durationcheck | ||
- errcheck | ||
- errchkjson | ||
- errname | ||
- errorlint | ||
- exportloopref | ||
- forbidigo | ||
- gofumpt | ||
- ginkgolinter | ||
- gocheckcompilerdirectives | ||
- gochecknoglobals | ||
- gocognit | ||
- goconst | ||
- gocritic | ||
- gocyclo | ||
- godox | ||
- goerr113 | ||
- goheader | ||
- goimports | ||
- gomodguard | ||
- goprintffuncname | ||
- gosec | ||
- gosimple | ||
- gosmopolitan | ||
- govet | ||
- grouper | ||
- importas | ||
- ineffassign | ||
- interfacebloat | ||
- loggercheck | ||
- maintidx | ||
- makezero | ||
- mirror | ||
- misspell | ||
- nakedret | ||
- nestif | ||
- nilerr | ||
- nilnil | ||
- noctx | ||
- nolintlint | ||
- nonamedreturns | ||
- nosprintfhostport | ||
- paralleltest | ||
- prealloc | ||
- predeclared | ||
- promlinter | ||
- reassign | ||
- revive | ||
- rowserrcheck | ||
- sqlclosecheck | ||
- staticcheck | ||
- stylecheck | ||
- tenv | ||
- testableexamples | ||
- testpackage | ||
- thelper | ||
- tparallel | ||
- unconvert | ||
- unparam | ||
- unused | ||
- usestdlibvars | ||
- wastedassign | ||
- whitespace | ||
- zerologlint | ||
- prealloc | ||
# - perfsprint |
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,4 +1,11 @@ | ||
# dev | ||
# 2.0.7 | ||
|
||
|
||
## Bufix | ||
|
||
* Publisher deadlock on channel close | ||
|
||
# 2.0.4 | ||
|
||
|
||
## Bufix | ||
|
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,43 @@ | ||
version: '3' | ||
|
||
tasks: | ||
fmt: | ||
cmds: | ||
- gofumpt -l -w . | ||
lint: | ||
cmds: | ||
- golangci-lint run --color "always" -v -j 8 | ||
sec: | ||
cmds: | ||
- gosec ./... | ||
tidy: | ||
cmds: | ||
- rm -f go.sum | ||
- go mod tidy | ||
update: | ||
cmds: | ||
- go get -u ./... # Updates regular packages | ||
- go get -u -t ./... # Updates Test packages | ||
cli-tools: | ||
cmds: | ||
- go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest | ||
- go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest | ||
- go install github.com/securego/gosec/v2/cmd/gosec@latest | ||
- go install github.com/uudashr/gopkgs/v2/cmd/gopkgs@latest | ||
- go install github.com/ramya-rao-a/go-outline@latest | ||
- go install github.com/cweill/gotests/gotests@latest | ||
- go install github.com/fatih/gomodifytags@latest | ||
- go install github.com/daixiang0/gci@latest | ||
- go install github.com/josharian/impl@latest | ||
- go install github.com/haya14busa/goplay/cmd/goplay@latest | ||
- go install github.com/go-delve/delve/cmd/dlv@latest | ||
- go install mvdan.cc/gofumpt@latest | ||
- go install github.com/swaggo/swag/cmd/swag@latest | ||
- go install github.com/cosmtrek/air@latest | ||
- go install google.golang.org/protobuf/cmd/[email protected] | ||
- go install google.golang.org/grpc/cmd/[email protected] | ||
test: | ||
cmds: | ||
- go test -covermode=atomic -race -coverprofile=coverage.txt -timeout 5m -json -v ./... | gotestfmt -showteststatus | ||
env: | ||
GOMAXPROCS: 4 |
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
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 |
---|---|---|
|
@@ -34,7 +34,6 @@ func watchdog[T any]( | |
queueDeclare.NoWait, | ||
nil, | ||
) | ||
|
||
if err != nil { | ||
return nil, err | ||
} | ||
|
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,15 +1,15 @@ | ||
module github.com/nano-interactive/go-amqp/v2 | ||
|
||
go 1.20 | ||
go 1.21 | ||
|
||
require ( | ||
github.com/rabbitmq/amqp091-go v1.5.0 | ||
github.com/stretchr/testify v1.8.1 | ||
github.com/rabbitmq/amqp091-go v1.9.0 | ||
github.com/stretchr/testify v1.8.4 | ||
) | ||
|
||
require ( | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/stretchr/objx v0.5.0 // indirect | ||
github.com/stretchr/objx v0.5.1 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
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 |
---|---|---|
|
@@ -19,8 +19,6 @@ type ( | |
messageBuffering int | ||
} | ||
|
||
PublisherConfig struct{} | ||
|
||
Option[T any] func(*Config[T]) | ||
) | ||
|
||
|
Oops, something went wrong.