utils

package
v0.0.0-...-dfd90ba Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMultipartFormBody

func CreateMultipartFormBody(values map[string]string,
	files map[string]File) (body *bytes.Buffer, contentType string, err error)

func ReadBody

func ReadBody(r *http.Request, log *zap.Logger) ([]byte, error)

Types

type File

type File struct {
	Name  string
	Bytes []byte
}

Jump to

Keyboard shortcuts

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