fix seeder issues
This commit is contained in:
19
README.md
19
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
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
5
docs/index.md
Normal file
5
docs/index.md
Normal file
@@ -0,0 +1,5 @@
|
||||
1. 框架介绍
|
||||
2. 技术栈
|
||||
- cobra
|
||||
- viper
|
||||
-
|
||||
Reference in New Issue
Block a user