Format code using "gofmt".

This commit is contained in:
Joachim Bauch 2022-02-25 09:20:26 +01:00
parent 8fd9c688b6
commit 7b631b0b2a
No known key found for this signature in database
GPG Key ID: 77C1D22D53E15F02
2 changed files with 3 additions and 2 deletions

View File

@ -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 .

View File

@ -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,
},
},