func (b *SafeBuffer) Read(p []byte) (n int, err error) {
	b.mu.Lock()
	defer b.mu.Unlock()
	return b.b.Read(p)
}
Read reads the buffer.
package safebuffer
import (
	"bytes"
	"sync"
)
type SafeBuffer struct {
	b  bytes.Buffer
	mu sync.Mutex
}