diff --git a/README.md b/README.md index d2f1965..fc77217 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,2 @@ -# atom -atom is a simple http/grpc service template - -## Tool -- [atomctl](https://github.com/rogeecn/atomctl) - -## Features -- using [Gin](https://github.com/gin-gonic/gin) to support http service -- using [dig](https://github.com/uber-go/dig) to support dependency injection -- using [gomigrate](github.com/go-gormigrate/gormigrate/v2) to support migration -- using [Gorm](gorm.io/gorm) to support orm -- using [gen](gorm.io/) to auto generate database models - -## License -MIT - -## Contact -- Rogee(rogeecn@qq.com) +#atom diff --git a/cmd_root.go b/cmd_root.go index 45f0afd..b238771 100644 --- a/cmd_root.go +++ b/cmd_root.go @@ -125,7 +125,7 @@ func Config(file string) Option { func Seeders(seeders ...contracts.SeederProvider) Option { return func(cmd *cobra.Command) { for _, seeder := range seeders { - if err := container.Container.Provide(seeder, dig.Group("seeder")); err != nil { + if err := container.Container.Provide(seeder, dig.Group("seeders")); err != nil { log.Fatal(err) } } diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 0000000..74c6d50 --- /dev/null +++ b/docs/index.md @@ -0,0 +1,5 @@ +1. 框架介绍 +2. 技术栈 + - cobra + - viper + - \ No newline at end of file