-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 648 Bytes
/
Makefile
File metadata and controls
32 lines (24 loc) · 648 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
.PHONY: clean check test build
export GO111MODULE=on
default: clean check test build
clean:
rm -rf cover.out
build: clean
go build -v .
test: clean
go test -v -cover ./...
check:
golangci-lint run
## Useful to initiate structures
# TODO: must be updated to support the subfolders.
#gen-struct:
# # go install github.com/miku/zek/cmd/zek@latest
# echo 'package namesilo' > "gen_struct.go";
# echo '' >> "gen_struct.go";
# echo 'import "encoding/xml"' >> "gen_struct.go";
# echo '' >> "gen_struct.go";
# for i in $$(ls samples/ -1); do \
# zek -c -n $${i%.xml} "./samples/$$i" >> "gen_struct.go"; \
# done
generate:
go run ./internal/