Implementation of custom byte buffer and filtering pipe demonstrating Go interfaces.
OurByteBuffer: Custom implementation of a bytes buffer (io.Reader and io.Writer) FilteringPipe: Writer that removes digits from text
// Buffer example
buffer := NewOurByteBuffer([]byte("Hello"))
buffer.Write([]byte(" World"))
fmt.Printf("Content: %s\n", buffer.Bytes())// Filter example
output := NewOurByteBuffer([]byte(""))
filter := NewFilteringPipe(output)
filter.Write([]byte("abc123def456"))
fmt.Printf("Filtered: %s\n", output.Bytes()) // "abcdef"go run main.go ourbuffer.go filtering_pipe.gogo test -v