// NewFrameDecoder returns a FrameDecoder using a given reader as source for
// frames.
//
// It is your responsibility to call Close on the reader when done.
NewFrameDecoder returns a FrameDecoder using a given reader as source for
frames.

It is your responsibility to call Close on the reader when done.
// NewFrameDecoder returns a FrameDecoder using a given reader as source for // frames . // // It is your responsibility to call Close on the reader when done .
func NewFrameDecoder(r io.Reader) (*FrameDecoder, error) {
	fd := &FrameDecoder{}
	var err error
	fd.gzr, err = gzip.NewReader(r)
	if err != nil {
		return nil, fmt.Errorf("frame decoding: gzip: %v", err)
	}
	fd.gbd = gob.NewDecoder(fd.gzr)
	return fd, nil
}
func NewFrameDecoder ( r io . Reader ) ( * FrameDecoder , error ) { fd := & FrameDecoder { } var err error fd . gzr , err = gzip . NewReader ( r ) if err != nil { return nil , fmt . Errorf ( " " , err ) } fd . gbd = gob . NewDecoder ( fd . gzr ) return fd , nil }
NewFrameDecoder returns a FrameDecoder using a given reader as source for
frames.
NewFrameDecoder returns a FrameDecoder using a given reader as source for frames .