wechaty/go-wechaty

View on GitHub
wechaty-puppet/filebox/file_box_stream.go

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
package filebox

import (
    "io"
)

var _ fileImplInterface = &fileBoxStream{}

type fileBoxStream struct {
    Reader io.Reader
}

func newFileBoxStream(reader io.Reader) *fileBoxStream {
    return &fileBoxStream{Reader: reader}
}

func (fb *fileBoxStream) toJSONMap() (map[string]interface{}, error) {
    return nil, nil
}

func (fb *fileBoxStream) toBytes() ([]byte, error) { // nolint:unused
    panic("im")
}

func (fb *fileBoxStream) toReader() (io.Reader, error) {
    return fb.Reader, nil
}