diff --git a/init.go b/init.go index cf53d88..883fab4 100644 --- a/init.go +++ b/init.go @@ -13,6 +13,16 @@ import ( "go.wit.com/log" ) +/* better syntax from gin +Default returns an Engine instance with the Logger and Recovery middleware already attached. +func Default(opts ...OptionFunc) *Engine { + debugPrintWARNINGDefault() + engine := New() + engine.Use(Logger(), Recovery()) + return engine.With(opts...) +} +*/ + // todo: use initOnce // cache.go has Do() // f.initOnce.Do(f.initWork)