nf/nf.go

20 lines
413 B
Go
Raw Permalink Normal View History

2024-01-10 20:26:19 +08:00
package nf
const (
banner = " _ _ _ ___ _ \n | \\| |___| |_ | __|__ _ _ _ _ __| |\n | .` / _ \\ _| | _/ _ \\ || | ' \\/ _` |\n |_|\\_\\___/\\__| |_|\\___/\\_,_|_||_\\__,_|\n "
)
type Config struct {
}
func New(config ...Config) *App {
app := &App{
router: newRouter(),
}
2024-01-11 18:16:41 +08:00
app.RouterGroup = &RouterGroup{app: app}
app.groups = []*RouterGroup{app.RouterGroup}
2024-01-10 20:26:19 +08:00
return app
}