Initialize modules and run
Description
main.go
go
package main
import (
"embed"
"github.com/wallace5303/ee-go/eboot"
"electron-egg/router"
"electron-egg/demo"
)
var (
// Embed static resources
//go:embed public/**
staticFS embed.FS
)
func main() {
// Initialize an ego, after which you can use all the framework modules
ego := eboot.New(staticFS)
// Developer business
// For example: load routes
router.Api()
// demo
demo.Index()
// Run
ego.Run()
}