Files
Go/main.go
appleboy 9dfe08a58c chore: update module and import paths
- 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>
2024-01-27 23:05:15 +08:00

14 lines
217 B
Go

package main
import (
"gitea.com/action-examples/go/router"
)
func main() {
r := router.New()
// listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
if err := r.Run(); err != nil {
panic(err)
}
}