mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-05-03 14:23:10 +02:00
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)
|
GO := $(shell which go)
|
||||||
GOPATH := "$(CURDIR)/vendor:$(CURDIR)"
|
GOPATH := "$(CURDIR)/vendor:$(CURDIR)"
|
||||||
|
GOFMT := "$(shell dirname "$(GO)")/gofmt"
|
||||||
GOOS ?= linux
|
GOOS ?= linux
|
||||||
GOARCH ?= amd64
|
GOARCH ?= amd64
|
||||||
BINDIR := "$(CURDIR)/bin"
|
BINDIR := "$(CURDIR)/bin"
|
||||||
|
@ -64,7 +65,7 @@ get:
|
||||||
GOPATH=$(GOPATH) $(GO) get $(PACKAGE)
|
GOPATH=$(GOPATH) $(GO) get $(PACKAGE)
|
||||||
|
|
||||||
fmt: hook
|
fmt: hook
|
||||||
$(GO) fmt .
|
$(GOFMT) -s -w *.go client proxy server
|
||||||
|
|
||||||
vet: common
|
vet: common
|
||||||
$(GO) vet .
|
$(GO) vet .
|
||||||
|
|
|
@ -134,7 +134,7 @@ func (s *ProxySession) OnUpdateOffer(client signaling.McuClient, offer map[strin
|
||||||
Payload: &signaling.PayloadProxyServerMessage{
|
Payload: &signaling.PayloadProxyServerMessage{
|
||||||
Type: "offer",
|
Type: "offer",
|
||||||
ClientId: id,
|
ClientId: id,
|
||||||
Payload: map[string]interface{}{
|
Payload: map[string]interface{}{
|
||||||
"offer": offer,
|
"offer": offer,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue