utils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFileContent

func GetFileContent(file *multipart.FileHeader) (content *[]byte, error error)

func ProcessResult

func ProcessResult(i interface{}, err error, c echo.Context) error

func SendError

func SendError(errorMessage string, errorDescription string) *model.ErrorResponse

func SendFileAndDelete

func SendFileAndDelete(c *echo.Context, file string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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