README ¶ Exercise 13.4 (P366) Depending on C libraries has its drawbacks. Provide an alternative pure-Go implementation of bzip.NewWriter that uses the os/exec package to run /bin/bzip2 as a subprocess. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func NewWriter(w io.Writer) (io.WriteCloser, error) type Writer func (w *Writer) Close() error func (w *Writer) Write(data []byte) (int, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewWriter ¶ func NewWriter(w io.Writer) (io.WriteCloser, error) Types ¶ type Writer ¶ type Writer struct { // contains filtered or unexported fields } func (*Writer) Close ¶ func (w *Writer) Close() error func (*Writer) Write ¶ func (w *Writer) Write(data []byte) (int, error) Source Files ¶ View all Source files bzip2.go Click to show internal directories. Click to hide internal directories.