func (c *Conn) Write(data []byte) (int, error) {
	c.wLock.Lock()
	defer c.wLock.Unlock()
	return c.wc.Write(data)
}
Write writes data to the connection
package h2conn
import (
	"context"
	"io"
	"sync"
)
type Conn struct {
	r  io.Reader
	wc io.WriteCloser
	cancel context.CancelFunc
	wLock sync.Mutex
	rLock sync.Mutex
}
func newConn(ctx context.Context, r io.Reader, wc io.WriteCloser) (*Conn, context.Context) {
	ctx, cancel := context.WithCancel(ctx)
	return &Conn{
		r:      r,
		wc:     wc,
		cancel: cancel,
	}, ctx
}