Format code using "gofmt".
This commit is contained in:
parent
8fd9c688b6
commit
7b631b0b2a
3
Makefile
3
Makefile
|
@ -2,6 +2,7 @@ all: build
|
|||
|
||||
GO := $(shell which go)
|
||||
GOPATH := "$(CURDIR)/vendor:$(CURDIR)"
|
||||
GOFMT := "$(shell dirname "$(GO)")/gofmt"
|
||||
GOOS ?= linux
|
||||
GOARCH ?= amd64
|
||||
BINDIR := "$(CURDIR)/bin"
|
||||
|
@ -64,7 +65,7 @@ get:
|
|||
GOPATH=$(GOPATH) $(GO) get $(PACKAGE)
|
||||
|
||||
fmt: hook
|
||||
$(GO) fmt .
|
||||
$(GOFMT) -s -w *.go client proxy server
|
||||
|
||||
vet: common
|
||||
$(GO) vet .
|
||||
|
|
|
@ -134,7 +134,7 @@ func (s *ProxySession) OnUpdateOffer(client signaling.McuClient, offer map[strin
|
|||
Payload: &signaling.PayloadProxyServerMessage{
|
||||
Type: "offer",
|
||||
ClientId: id,
|
||||
Payload: map[string]interface{}{
|
||||
Payload: map[string]interface{}{
|
||||
"offer": offer,
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue