From d2ae1381c76f53c14fe4e6e4d9b557887cd93187 Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Thu, 8 Oct 2026 02:47:42 +0200 Subject: Update Go module path and source imports --- writer.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'writer.go') diff --git a/writer.go b/writer.go index 7e1947a..3980f03 100644 --- a/writer.go +++ b/writer.go @@ -1,12 +1,14 @@ -package binproto +package muxer import ( "bufio" "encoding/binary" ) -// A Writer implements convenience methods for writing -// requests or responses to a binary protocol network connection. +// Writer implements a buffered message writer for the muxer protocol. +// It encodes and writes messages to an underlying bufio.Writer, handling +// message framing and varint-based length encoding. Writer is not safe for +// concurrent use by multiple goroutines. type Writer struct { wd *bufio.Writer scratch [20]byte -- cgit v1.3.1