-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 671 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (27 loc) · 671 Bytes
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
30
31
32
33
34
35
36
# for swagger2 server
export PORT?=8080
fmt:
gofumpt -l -w -extra ./.
gci write -s Std -s 'Prefix(github.com/grbit/swagger-example)' -s Def .
vet:
go vet ./src/...
lint: fmt
@golangci-lint run --new-from-rev=master ./...
# https://github.com/swagger-api/swagger-codegen
java-generate:
./api/oa3/java/generate.sh
make fmt
# https://github.com/go-swagger/go-swagger
swagger2-generate:
./api/sw2/generate.sh
make fmt
# https://github.com/deepmap/oapi-codegen
codegen-generate:
./api/oa3/codegen/generate.sh
make fmt
start-swagger2:
@go run ./cmd/stats-server/main.go
start-java:
@go run ./cmd/java/main.go
start-codegen:
@go run ./cmd/codegen/main.go