Move to Chezmoi
This commit is contained in:
parent
f216c4ff2c
commit
e3498e73b5
59 changed files with 499 additions and 2240 deletions
chezmoi/dot_zshrc.d
11
chezmoi/dot_zshrc.d/executable_golang-helpers.zsh
Normal file
11
chezmoi/dot_zshrc.d/executable_golang-helpers.zsh
Normal file
|
@ -0,0 +1,11 @@
|
|||
if command -v go &> /dev/null; then
|
||||
go_coverage() {
|
||||
(
|
||||
set -eo pipefail
|
||||
local -r COVERAGE_OUT="$(mktemp)"
|
||||
go test -cover -coverprofile="${COVERAGE_OUT}" ./...
|
||||
go tool cover -func="${COVERAGE_OUT}"
|
||||
rm -f "${COVERAGE_OUT}"
|
||||
)
|
||||
}
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue