I am newbie to golang.tried making an API with gin.
router := gin.Default()
router.GET("/search", controllers.Search)
router.POST("/handshake/", controllers.Handshake)
router.GET("/ping", func(c *gin.Context) {
c.JSON(200, gin.H{
"message": "pong",
})
})
router.Use(gin.Recovery())
router.Run(fmt.Sprintf(":%d", 8080))
i am creating the binary on my local machine running ubuntu 18.04 and distributing the binary to ubuntu 16.04 on aws ec2. the service runs fine and stops suddenly without any trace of error or warning or panic on the log. very difficult to find out whats wrong ?
Any Leads to debug the scenario will be appreciated. thanks in advance