func NewBuffer() *Buffer {
	return &Buffer{
		lock: &sync.Mutex{},
	}
}
/*
NewBuffer returns a new gbytes.Buffer
package gbytes
import (
	"errors"
	"fmt"
	"regexp"
	"sync"
	"time"
)
type Buffer struct {
	contents     []byte
	readCursor   uint64
	lock         *sync.Mutex
	detectCloser chan interface{}
	closed       bool
}