utils

package
v0.0.0-...-dc73bba Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdatedFieldsMap

func UpdatedFieldsMap(data interface{}) map[string]interface{}

func Validate

func Validate(data interface{}, validate *validator.Validate) string

Types

type ErrorResponse

type ErrorResponse struct {
	Status  string `json:"status"`
	Message string `json:"message"`
}

func NewErrorResponse

func NewErrorResponse(message string) *ErrorResponse

type SuccessResp

type SuccessResp struct {
	Status  string      `json:"status"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

func NewSuccessResponse

func NewSuccessResponse(message string, data interface{}) *SuccessResp

Jump to

Keyboard shortcuts

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