uploadfile

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options ...UploadFileOption) io.Reader

func NewPath

func NewPath(p string) io.Reader

func NewReader

func NewReader(r io.Reader) io.Reader

func NewString

func NewString(s string) io.Reader

Types

type UploadFile

type UploadFile interface {
	Read(p []byte) (n int, err error)
}

type UploadFileOption

type UploadFileOption func(*uploadFile)

func WithPath

func WithPath(path string) UploadFileOption

func WithReader

func WithReader(r io.Reader) UploadFileOption

func WithString

func WithString(s string) UploadFileOption

Jump to

Keyboard shortcuts

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