code: func NewDecoder(r io.Reader) *Decoder {
  	h := sha1.New()
  	return &Decoder{
  		r:         io.TeeReader(r, h),
  		hash:      h,
  		extReader: bufio.NewReader(nil),
  	}
  }
docs: // NewDecoder returns a new decoder that reads from r.