func (api *API) Run() {
	r := gin.Default()
	api.configRoutes(r)
	r.Run()  
}
Run function runs our API application
package api
import (
	"github.com/gin-gonic/gin"
)
type API struct {
	pingCtrl *pingCtrl
	msgCtrl  MessageController
}
func New(msgCtrl MessageController) *API {
	api := new(API)
	api.msgCtrl = msgCtrl
	api.pingCtrl = newPingCtrl()
	return api
}
type Ctx interface {
	Param(key string) string
	String(code int, format string, values ...interface{})
	JSON(code int, obj interface{})
}