diff options
| -rw-r--r-- | init.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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) |
