Skip to content

Commit c178658

Browse files
committed
Add MultipartPayload
1 parent 6b36cf5 commit c178658

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

go.mod

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/go-generalize/multipart-util
2+
3+
go 1.17

multipart.go

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package multipartutil
2+
3+
import (
4+
"io"
5+
"net/textproto"
6+
)
7+
8+
// MultipartPayload is a payload of multipart/form-data for api_gen
9+
type MultipartPayload struct {
10+
Filename string
11+
Data io.Reader
12+
MIMEHeader textproto.MIMEHeader
13+
}

0 commit comments

Comments
 (0)