Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SharedBuffer ¶
type SharedBuffer struct {
// contains filtered or unexported fields
}
SharedBuffer is a goroutine safe bytes.Buffer
Origin:
https://gist.github.com/arkan/5924e155dbb4254b64614069ba0afd81 https://github.com/arkan
Changes:
- buffer field is now a pointer
- Renamed to SharedBuffer
- Added NewSharedBuffer
func NewSharedBuffer ¶
func NewSharedBuffer() *SharedBuffer
func (*SharedBuffer) String ¶
func (s *SharedBuffer) String() string
String returns the contents of the unread portion of the buffer as a string. If the SharedBuffer is a nil pointer, it returns "<nil>".
func (*SharedBuffer) Unshared ¶
func (s *SharedBuffer) Unshared() *std_bytes.Buffer
Click to show internal directories.
Click to hide internal directories.