Ver Fonte

go.net: gofmt -w -s

R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/6811084
Mikio Hara há 13 anos atrás
pai
commit
811c2f5ee8
3 ficheiros alterados com 5 adições e 5 exclusões
  1. 1 1
      ipv4/doc.go
  2. 2 2
      spdy/types.go
  3. 2 2
      websocket/hybi_test.go

+ 1 - 1
ipv4/doc.go

@@ -22,7 +22,7 @@
 // important, ipv4.Conn is used to set the type-of-service field on
 // the IPv4 header for each packet.
 //
-//	ln, err := net.Listen("tcp4", "0.0.0.0:1024") 
+//	ln, err := net.Listen("tcp4", "0.0.0.0:1024")
 //	if err != nil {
 //		// error handling
 //	}

+ 2 - 2
spdy/types.go

@@ -355,8 +355,8 @@ type Framer struct {
 }
 
 // NewFramer allocates a new Framer for a given SPDY connection, repesented by
-// a io.Writer and io.Reader. Note that Framer will read and write individual fields 
-// from/to the Reader and Writer, so the caller should pass in an appropriately 
+// a io.Writer and io.Reader. Note that Framer will read and write individual fields
+// from/to the Reader and Writer, so the caller should pass in an appropriately
 // buffered implementation to optimize performance.
 func NewFramer(w io.Writer, r io.Reader) (*Framer, error) {
 	compressBuf := new(bytes.Buffer)

+ 2 - 2
websocket/hybi_test.go

@@ -535,8 +535,8 @@ func TestHybiClientReadWithMasking(t *testing.T) {
 }
 
 // Test the hybiServerHandshaker supports firefox implementation and
-// checks Connection request header include (but it's not necessary 
-// equal to) "upgrade"   
+// checks Connection request header include (but it's not necessary
+// equal to) "upgrade"
 func TestHybiServerFirefoxHandshake(t *testing.T) {
 	config := new(Config)
 	handshaker := &hybiServerHandshaker{Config: config}