utils

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Form

type Form struct {
	// contains filtered or unexported fields
}

func NewFormBuilder

func NewFormBuilder(body io.Writer) *Form

func (*Form) Close

func (f *Form) Close() error

func (*Form) CreateFormFile

func (f *Form) CreateFormFile(fieldName string, file *os.File) error

func (*Form) FormDataContentType

func (f *Form) FormDataContentType() string

func (*Form) WriteField

func (f *Form) WriteField(fieldName, value string) error

type FormBuilder

type FormBuilder interface {
	CreateFormFile(fieldName string, file *os.File) error
	WriteField(fieldName, value string) error
	Close() error
	FormDataContentType() string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL