run gofumpt, enable the gofumpt linter

This commit is contained in:
Marten Seemann
2020-10-25 12:43:26 +07:00
parent 598f975024
commit 8752576f26
50 changed files with 132 additions and 109 deletions

View File

@@ -1,10 +1,10 @@
package protocol
import (
"testing"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"testing"
)
func TestProtocol(t *testing.T) {

View File

@@ -61,7 +61,7 @@ func (s StreamID) InitiatedBy() Perspective {
return PerspectiveServer
}
//Type says if this is a unidirectional or bidirectional stream
// Type says if this is a unidirectional or bidirectional stream
func (s StreamID) Type() StreamType {
if s%4 >= 2 {
return StreamTypeUni