forked from johnfercher/maroto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (24 loc) · 844 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
GO_FILES = $(shell find . '(' -path '*/.*' -o -path './vendor' ')' -prune -o -name '*.go' -print | cut -b3-)
GO_PATHS = $(shell go list -f '{{ .Dir }}' ./...)
dod: fmt lint
fmt:
gofmt -s -w ${GO_FILES}
gofumpt -l -w ${GO_FILES}
goimports -w ${GO_PATHS}
lint:
goreportcard-cli -v
golangci-lint run --config=.golangci.yml ./...
install:
bash install.sh
examples:
go run internal/examples/barcodegrid/main.go
go run internal/examples/billing/main.go
go run internal/examples/certificate/main.go
go run internal/examples/customsize/main.go
go run internal/examples/dmgrid/main.go
go run internal/examples/imagegrid/main.go
go run internal/examples/qrgrid/main.go
go run internal/examples/sample1/main.go
go run internal/examples/textgrid/main.go
go run internal/examples/zpl/main.go
go run internal/examples/utfsample/main.go