0
I need to change the get answer below:
router.GET("/health", func(context *gin.Context) {
context.JSON(http.StatusOK, gin.H{
"message": "OK",
})
})
I need to create a dependency checker. A request must follow the following template:
{
"status": "OK",
"message": "Nenhum problema encontrado",
"dependencies": [
{
"name": "DEPENDENCIA",
"status": "OK",
}
]
}
I do not understand what the problem is, try to describe better where you want to get.
– Rodrigo Rigotti
Daniel, you need to create a
struct
with the fields you want, populate them with the information and return as JSON– user3603