-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
help wantedSeeking public contribution on this issueSeeking public contribution on this issue
Description
Would be great to have:
// StringBase returns the Base s is in.
func StringBase(s string) Base { ... }
// BufferBase returns the Base buf is in.
func BufferBase(buf []byte) Base { ... }maybe even
type EncodedReader struct {
R io.Reader // the underlying reader
B Base // the base the reader is in
}
func NewEncodedReader(r io.Reader) EncodedReader {
b := consumeTheBaseCode(r)
return EncodedReader{r, b}
}
func (er *EncodedReader) Decoded() io.Reader {
// return a reader that returns the decoded data
}Metadata
Metadata
Assignees
Labels
help wantedSeeking public contribution on this issueSeeking public contribution on this issue