response

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON

func JSON(c *gin.Context, data interface{}, err error)

func WriteFile

func WriteFile(c *gin.Context, data []byte, fileName string)

WriteFile writes file to response

func WriteFileCSV

func WriteFileCSV(c *gin.Context, data []byte, fileName string)

WriteFileCSV writes file to response

func WriteFileHTML

func WriteFileHTML(c *gin.Context, data []byte, fileName string)

WriteFileHTML writes file to response

func WriteFilePDF

func WriteFilePDF(c *gin.Context, data []byte, fileName string)

WriteFilePDF writes file to response

Types

This section is empty.

Jump to

Keyboard shortcuts

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