-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
966 additions
and
667 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,5 +1,24 @@ | ||
generate: | ||
# The default "help" goal nicely prints all the available goals based on the funny looking ## comments. | ||
# Source: https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html | ||
.DEFAULT_GOAL := help | ||
.PHONY: help | ||
help: ## Display this help | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
GOLANGCI_LINT_VERSION := v1.61.0 | ||
|
||
.PHONY: generate | ||
generate: ## Generate easyjson | ||
go generate ./... | ||
|
||
test: | ||
go test ./... | ||
.PHONY: golangci-lint | ||
golangci-lint: | ||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(GOLANGCI_LINT_VERSION) | ||
|
||
.PHONY: lint | ||
lint: golangci-lint ## Run the linters | ||
golangci-lint run | ||
|
||
.PHONY: test | ||
test: ## Run the unit tests | ||
go test -cover ./... |
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 |
---|---|---|
|
@@ -9,10 +9,9 @@ import ( | |
"time" | ||
|
||
"cloud.google.com/go/civil" | ||
"github.com/shopspring/decimal" | ||
|
||
// Required for easyjson generation | ||
_ "github.com/mailru/easyjson/gen" | ||
"github.com/shopspring/decimal" | ||
) | ||
|
||
//go:generate go install github.com/mailru/easyjson/[email protected] | ||
|
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
Oops, something went wrong.