nf/nf.go
2024-01-11 18:16:41 +08:00

20 lines
413 B
Go

package nf
const (
banner = " _ _ _ ___ _ \n | \\| |___| |_ | __|__ _ _ _ _ __| |\n | .` / _ \\ _| | _/ _ \\ || | ' \\/ _` |\n |_|\\_\\___/\\__| |_|\\___/\\_,_|_||_\\__,_|\n "
)
type Config struct {
}
func New(config ...Config) *App {
app := &App{
router: newRouter(),
}
app.RouterGroup = &RouterGroup{app: app}
app.groups = []*RouterGroup{app.RouterGroup}
return app
}