Skip to content

Commit a699dd4

Browse files
committed
add godoc
1 parent faa64fd commit a699dd4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

protocol/httphelper.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,9 @@ func MultipartAddField(writer *multipart.Writer, name string, value string) bool
481481
return err == nil
482482
}
483483

484+
// MultipartCreateFormFields generates multipart form data out of the field names and values
485+
// provided via fieldMap and writes this to writer.
486+
// It returns a bool to indicate success or failure.
484487
func MultipartCreateFormFields(writer *multipart.Writer, fieldMap map[string]string) bool {
485488
for fieldName, value := range fieldMap {
486489
if ok := MultipartAddField(writer, fieldName, value); !ok {

0 commit comments

Comments
 (0)