- Update the Go version from `1.21.2` to `1.21`
- Add `github.com/stretchr/testify` as a required dependency
- Add `github.com/davecgh/go-spew` as an indirect dependency
- Add `github.com/pmezard/go-difflib` as an indirect dependency
- Add a new test file `router/router_test.go`
- Implement a test for the `PingRoute` function in `router/router_test.go`
Signed-off-by: appleboy <appleboy.tw@gmail.com>
- Remove the import statement for "github.com/gin-gonic/gin" in main.go
- Add a new file called router.go in the router directory
- Create a new function called New() in router.go that returns a *gin.Engine
- Add a GET route for "/ping" in the New() function in router.go
Signed-off-by: appleboy <appleboy.tw@gmail.com>