response

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REST_DATA_KEY       = "data"
	REST_PAGINATION_KEY = "pagination"
)

Variables

This section is empty.

Functions

func JsonErrorResponce

func JsonErrorResponce(w http.ResponseWriter, errorList map[string][]string, status int)

func JsonResponceMap

func JsonResponceMap(w http.ResponseWriter, data map[string]interface{})

func JsonResponceMapSlice

func JsonResponceMapSlice(w http.ResponseWriter, data map[string][]*string)

func JsonRespond

func JsonRespond(w http.ResponseWriter, data map[string]interface{})

func Message

func Message(status bool, message string) map[string]interface{}

func Response

func Response(w http.ResponseWriter, data interface{})

func ResponseList

func ResponseList(w http.ResponseWriter, dataList interface{}, paginator *pagination.Pagination)

Types

This section is empty.

Jump to

Keyboard shortcuts

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