better syntax ideas
This commit is contained in:
parent
7e1804f6e3
commit
b4a15ef947
10
init.go
10
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)
|
||||
|
|
Loading…
Reference in New Issue