- Change the module name from "example" to "gitea.com/action-examples/go" in go.mod
- Update the import path from "example/router" to "gitea.com/action-examples/go/router" in main.go
Signed-off-by: appleboy <appleboy.tw@gmail.com>
- 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>
- Add a new file `go.mod` with the content of a Go module
- Specify the module name as `example`
- Specify the Go version as `1.21.2`
- Add a requirement for the package `github.com/gin-gonic/gin` with version `v1.9.1`
- Add multiple indirect requirements for various packages
- Add a new file `main.go` with a basic Go program using the `gin-gonic/gin` package to create an HTTP server
Signed-off-by: appleboy <appleboy.tw@gmail.com>