add default provider
This commit is contained in:
14
defautl_http.go
Normal file
14
defautl_http.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package atom
|
||||
|
||||
import (
|
||||
"github.com/rogeecn/atom/container"
|
||||
"github.com/rogeecn/atom/providers/http/gin"
|
||||
"github.com/rogeecn/atom/providers/log"
|
||||
)
|
||||
|
||||
func DefaultHTTP(providers ...container.ProviderContainer) container.Providers {
|
||||
return append(container.Providers{
|
||||
log.DefaultProvider(),
|
||||
gin.DefaultProvider(),
|
||||
}, providers...)
|
||||
}
|
||||
Reference in New Issue
Block a user