clean code, add golangci config, preallocate some slices and avoid copying body before parsing json (#9)
This commit is contained in:
parent
0a146c515c
commit
c7a2612056
12 changed files with 49 additions and 45 deletions
19
.golangci.yml
Normal file
19
.golangci.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
run:
|
||||
timeout: 5m
|
||||
|
||||
linters:
|
||||
enable:
|
||||
- bodyclose
|
||||
- gocritic
|
||||
- unconvert
|
||||
- ineffassign
|
||||
- staticcheck
|
||||
- prealloc
|
||||
- nilerr
|
||||
- gosimple
|
||||
- asasalint
|
||||
disable:
|
||||
- errcheck
|
||||
|
||||
issues:
|
||||
exclude-use-default: false
|
Loading…
Add table
Add a link
Reference in a new issue