// NewReader creates a new multipart Reader reading from r using the
// given MIME boundary.
NewReader creates a new multipart Reader reading from r using the
given MIME boundary.
// NewReader creates a new multipart Reader reading from r using the // given MIME boundary .
func NewReader(reader io.Reader, boundary string) *Reader {
	b := []byte("\r\n--" + boundary + "--")
	return &Reader{
		bufReader: bufio.NewReader(reader),
		nl:               b[:2],
		nlDashBoundary:   b[:len(b)-2],
		dashBoundaryDash: b[2:],
		dashBoundary:     b[2 : len(b)-2],
	}
}
func NewReader ( reader io . Reader , boundary string ) * Reader { b := [ ] byte ( " \r \n " + boundary + " " ) return & Reader { bufReader : bufio . NewReader ( reader ) , nl : b [ : 2 ] , nlDashBoundary : b [ : len ( b ) - 2 ] , dashBoundaryDash : b [ 2 : ] , dashBoundary : b [ 2 : len ( b ) - 2 ] , } }
NewReader creates a new multipart Reader reading from r using the
given MIME boundary.
NewReader creates a new multipart Reader reading from r using the given MIME boundary .