From ca90ebdfa8789654766c5d7969baa7afacd9ebd2 Mon Sep 17 00:00:00 2001 From: BanceDev Date: Mon, 16 Feb 2026 16:31:54 -0500 Subject: initial commit --- common/buffer/option.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 common/buffer/option.go (limited to 'common/buffer/option.go') diff --git a/common/buffer/option.go b/common/buffer/option.go new file mode 100644 index 0000000..2e802e6 --- /dev/null +++ b/common/buffer/option.go @@ -0,0 +1,9 @@ +package buffer + +type Option func(*Buffer) + +func WithData(data []byte) Option { + return func(b *Buffer) { + b.buf = data + } +} -- cgit v1.2.3-59-g8ed1b