package main import ( "fmt" "net/http" "github.com/gin-gonic/gin" ) func main() { fmt.Println("Welcome to lst backend where all the fun happens.") r := gin.Default() r.GET("/", errorLoc) r.Run(":8080") } func errorLoc(c *gin.Context) { c.JSON(http.StatusOK, gin.H{"message": "welcome to lst system you might have just encountered an incorrect area of the app"}) }