change options
This commit is contained in:
@@ -4,12 +4,13 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/rogeecn/atom/container"
|
||||
"github.com/rogeecn/atom/providers"
|
||||
"github.com/rogeecn/atom/utils/opt"
|
||||
|
||||
"github.com/brianvoe/gofakeit/v6"
|
||||
)
|
||||
|
||||
func Provide(o *providers.Options) error {
|
||||
func Provide(opts ...opt.Option) error {
|
||||
o := opt.New(opts...)
|
||||
return container.Container.Provide(func() (*gofakeit.Faker, error) {
|
||||
faker := gofakeit.New(time.Now().UnixNano())
|
||||
gofakeit.SetGlobalFaker(faker)
|
||||
|
||||
Reference in New Issue
Block a user