Documentation
¶
Overview ¶
Package core provides the foundations of asciigoat packages
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReadCloser ¶
func NewReadCloser(r io.Reader) io.ReadCloser
NewReadCloser wraps a io.Reader to satisfy io.ReadCloser if needed
func NewReadCloserBytes ¶
func NewReadCloserBytes(b []byte) io.ReadCloser
NewReadCloserBytes wraps a bytes slice to implement a io.ReadCloser
func NewReadCloserString ¶
func NewReadCloserString(s string) io.ReadCloser
NewReadCloserString wraps a string to implement a io.ReadCloser
Types ¶
type ReadCloser ¶
type ReadCloser struct {
// contains filtered or unexported fields
}
ReadCloser adds a Close() to Readers without one
func (*ReadCloser) Close ¶
func (rc *ReadCloser) Close() error
Close attempts to Close the underlying io.Reader, or remove it if it doesn't support Close() and fail if closed twice
Source Files
¶
- docs.go
- readcloser.go
Click to show internal directories.
Click to hide internal directories.