bindme

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEOF           = errors.New("body must not be empty")
	ErrInvalidJson   = errors.New("body contains badly-formed JSON")
	ErrDuplicateJson = errors.New("body contains only one JSON object")
)

Functions

func ReadFile added in v0.4.0

func ReadFile(r *http.Request, fileName string, maxFileSize int64) (multipart.File, *multipart.FileHeader, error)

func ReadForm added in v0.3.0

func ReadForm(r *http.Request, dst interface{}) error

func ReadJson

func ReadJson(r *http.Request, dst interface{}) error

func WriteJson

func WriteJson(w http.ResponseWriter, status int, v interface{}, headers http.Header) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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