// NewApp creates a new App with the given configuration options.
NewApp creates a new App with the given configuration options.
// NewApp creates a new App with the given configuration options .
func NewApp(cfg AppConfig) *App {
	app := &App{
		model:       cfg.Model,
		driver:      cfg.Driver,
		logger:      cfg.Logger,
		CatchPanics: true,
	}
	if cfg.FrameWriter != nil {
		app.enc = newFrameEncoder(cfg.FrameWriter)
	}
	return app
}
func NewApp ( cfg AppConfig ) * App { app := & App { model : cfg . Model , driver : cfg . Driver , logger : cfg . Logger , CatchPanics : true , } if cfg . FrameWriter != nil { app . enc = newFrameEncoder ( cfg . FrameWriter ) } return app }
NewApp creates a new App with the given configuration options.
NewApp creates a new App with the given configuration options .