mirror of
https://gitee.com/johng/gf
synced 2026-07-05 05:13:14 +08:00
新增go modules支持,自行管理第三方包依赖,方便开发者使用
This commit is contained in:
15
third/github.com/gorilla/websocket/conn_write.go
Normal file
15
third/github.com/gorilla/websocket/conn_write.go
Normal file
@ -0,0 +1,15 @@
|
||||
// Copyright 2016 The Gorilla WebSocket Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build go1.8
|
||||
|
||||
package websocket
|
||||
|
||||
import "net"
|
||||
|
||||
func (c *Conn) writeBufs(bufs ...[]byte) error {
|
||||
b := net.Buffers(bufs)
|
||||
_, err := b.WriteTo(c.conn)
|
||||
return err
|
||||
}
|
||||
Reference in New Issue
Block a user