-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (27 loc) · 698 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (27 loc) · 698 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
.phony: all clean fmt run run-8583 run-modbus echo-client http-client-nobody http-client-body http-client-form build test vet
all: build
fmt:
go fmt ./...
run: fmt
go run main.go server -v -p http
run-8583: fmt
go run main.go server -v -p iso8583
run-modbus: fmt
go run main.go server -v -p modbus
echo-client:
nc 127.0.0.1 8000
http-client-nobody:
curl -v http://127.0.0.1:8000
http-client-body:
curl -v -X POST -d '{"name":"bob"}' -H 'Content-Type: application/json' http://127.0.0.1:8000
# TODO: to support
http-client-form:
curl -v -X POST -F key1=value1 http://127.0.0.1:8000
test:
go test ./...
vet:
go vet ./...
build: fmt
CGO_ENABLED=0 go build
clean:
rm -f tcp-multiplexer