package controller import ( "net/http" "github.com/gin-gonic/gin" ) func Teardown(c *gin.Context) { // Close connection err := client.Teardown(c) if err != nil { c.Status(http.StatusInternalServerError) return } c.Status(http.StatusOK) }