PHP Classes

File: backend/go/handler/handler.go

Recommend this page to a friend!
  Packages of Everton C B Junior   Igreja Aberta   backend/go/handler/handler.go   Download  
File: backend/go/handler/handler.go
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Igreja Aberta
Church activity management application
Author: By
Last change:
Date: 11 days ago
Size: 341 bytes
 

Contents

Class file image Download
package handler import ( "github.com/gin-gonic/gin" ) var stack = gin.H{ "stack": "Go", "db": "SQLite", } func JSONResponse(code int, data any, message string) gin.H { response := gin.H{ "code": code, "data": data, "message": message, } for key, value := range stack { response[key] = value } return response }