You've already forked getpsrc
chore(deps): update golangci lint to v2
All checks were successful
Golang Tests / unittest (stable, ubuntu-latest-amd64) (push) Successful in 7s
Markdown linter / markdown-lint (push) Successful in 3s
Golang Tests / unittest (stable, ubuntu-latest-arm64) (push) Successful in 18s
Golang CI lint / golangci (stable, ubuntu-latest-arm64) (push) Successful in 40s
Golang CI lint / golangci (stable, ubuntu-latest-amd64) (push) Successful in 1m22s
All checks were successful
Golang Tests / unittest (stable, ubuntu-latest-amd64) (push) Successful in 7s
Markdown linter / markdown-lint (push) Successful in 3s
Golang Tests / unittest (stable, ubuntu-latest-arm64) (push) Successful in 18s
Golang CI lint / golangci (stable, ubuntu-latest-arm64) (push) Successful in 40s
Golang CI lint / golangci (stable, ubuntu-latest-amd64) (push) Successful in 1m22s
This commit is contained in:
@ -1,27 +1,13 @@
|
|||||||
run:
|
version: "2"
|
||||||
timeout: 10m
|
|
||||||
tests: true
|
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
disable-all: true
|
default: standard
|
||||||
enable:
|
enable:
|
||||||
# Default
|
- errname
|
||||||
- deadcode
|
- gosec
|
||||||
- errcheck
|
|
||||||
- gosimple
|
|
||||||
- govet
|
|
||||||
- ineffassign
|
|
||||||
- staticcheck
|
|
||||||
- structcheck
|
|
||||||
- typecheck
|
|
||||||
- unused
|
|
||||||
- varcheck
|
|
||||||
|
|
||||||
# Additionally linters
|
exclusions:
|
||||||
- bodyclose
|
rules: []
|
||||||
- misspell
|
warn-unused: true
|
||||||
- nilerr
|
|
||||||
- rowserrcheck
|
run:
|
||||||
- sqlclosecheck
|
tests: true
|
||||||
- unparam
|
|
||||||
- whitespace
|
|
||||||
|
5
main.go
5
main.go
@ -36,5 +36,8 @@ func main() {
|
|||||||
log.Fatalf("failed to find gateway for ip: %v", err.Error())
|
log.Fatalf("failed to find gateway for ip: %v", err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Fprintln(os.Stdout, prefferedSrc.String())
|
_, err = fmt.Fprintln(os.Stdout, prefferedSrc.String())
|
||||||
|
if err != nil {
|
||||||
|
log.Fatalf("failed to print gateway on stdout: %v", err.Error())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user