Versions in this module Expand all Collapse all v0 v0.1.0 Sep 8, 2024 Changes in this version + func PartSeq(parts ...*Part) iter.Seq2[*Part, error] + func PartsFromReader(r *multipart.Reader, raw bool) iter.Seq2[*Part, error] + func PartsFromRequest(r *http.Request, raw bool) iter.Seq2[*Part, error] + type Part struct + Content io.Reader + Header textproto.MIMEHeader + func NewPart() *Part + func (p *Part) AddHeaderValue(key, value string) *Part + func (p *Part) AddToWriter(mw *multipart.Writer) error + func (p *Part) ContentType() string + func (p *Part) DetectContentType() *Part + func (p *Part) FileName() string + func (p *Part) FormName() string + func (p *Part) MergeHeaders(h textproto.MIMEHeader) *Part + func (p *Part) Reset() + func (p *Part) SetContent(content io.Reader) *Part + func (p *Part) SetContentBytes(content []byte) *Part + func (p *Part) SetContentString(content string) *Part + func (p *Part) SetContentType(contentType string) *Part + func (p *Part) SetContentTypeByExtension() *Part + func (p *Part) SetFileName(fileName string) *Part + func (p *Part) SetFormName(formName string) *Part + func (p *Part) SetHeaderValue(key, value string) *Part + type Source struct + func NewSource(parts iter.Seq2[*Part, error]) *Source + func (s *Source) Boundary() string + func (s *Source) Close() error + func (s *Source) FormDataContentType() string + func (s *Source) Read(p []byte) (n int, err error) + func (s *Source) Reset(parts iter.Seq2[*Part, error]) + func (s *Source) SetBoundary(boundary string) error + func (s *Source) WriteTo(target io.Writer) (int64, error)