Skip to content

Commit

Permalink
Fix typo of comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bang9211 committed Aug 10, 2023
1 parent f026212 commit cc3ae76
Showing 1 changed file with 18 additions and 26 deletions.
44 changes: 18 additions & 26 deletions wirejacket.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type WireJacket struct {
// in 'modules' value of viperjacket.
//
// But Wire-Jacket considered The Twelve Factors. Config can be
// overrided by envrionment variable.(see viperjacket.go)
// overrided by environment variable.(see viperjacket.go)
// So, when using more than one WireJacket on the same system,
// each WireJacket should have a unique service name to avoid
// conflicting value of 'modules'.
Expand Down Expand Up @@ -76,7 +76,7 @@ func New() *WireJacket {
// in 'modules' value of viperjacket.
//
// But Wire-Jacket considered The Twelve Factors. Config can be
// overrided by envrionment variable.(see viperjacket.go)
// overrided by environment variable.(see viperjacket.go)
// So, when using more than one WireJacket on the same system,
// each WireJacket should have a unique service name to avoid
// conflicting value of 'modules'.
Expand Down Expand Up @@ -147,34 +147,30 @@ func (wj *WireJacket) SetActivatingModules(moduleNames []string) {
// if serviceName no exists, value of 'modules' in viperjacket.
// if serviceName exists, value of '{serviceName}_modules' in viperjacket.
//
//
// modules example of app.conf (serviceName=ossicones) :
//
// ossicones_modules=mysql ossiconesblockchain defaultexplorerserver defaultrestapiserver
//
//
// definition in wire.go
//
// func InjectMySQL(config viperjacket.Config) (database.Database, error) { ... }
// func InjectOssiconesBlockchain(config viperjacket.Config, database.Database) (blockchain.Blockchain, error) { ... }
// func InjectDefaultExplorerServer(config viperjacket.Config, blockchain blockchain.Blockchain) (explorerserver.ExplorerServer, error) { ...}
// func InjectDefaultRESTAPIServer(config viperjacket.Config, blockchain blockchain.Blockchain) (restapiserver.RESTAPIServer, error) { ...}
//
//
// injectors can be like this.
//
// var injectors = map[string]interface{}{
// "mysql": InjectMySQL,
// "ossiconesblockchain": InjectOssiconesBlockchain,
// }
// var injectors = map[string]interface{}{
// "mysql": InjectMySQL,
// "ossiconesblockchain": InjectOssiconesBlockchain,
// }
//
// eagerInjectors can be like this.
//
// var eagerInjectors = map[string]interface{}{
// "defaultexplorerserver": InjectDefaultExplorerServer,
// "defaultrestapiserver": InjectDefaultRESTAPIServer,
// }
//
// var eagerInjectors = map[string]interface{}{
// "defaultexplorerserver": InjectDefaultExplorerServer,
// "defaultrestapiserver": InjectDefaultRESTAPIServer,
// }
//
// injectors will be injected lazily.
func (wj *WireJacket) SetInjectors(injectors map[string]interface{}) *WireJacket {
Expand All @@ -188,34 +184,30 @@ func (wj *WireJacket) SetInjectors(injectors map[string]interface{}) *WireJacket
// if serviceName no exists, value of 'modules' in viperjacket.
// if serviceName exists, value of '{serviceName}_modules' in viperjacket.
//
//
// modules example of app.conf (serviceName=ossicones) :
//
// ossicones_modules=mysql ossiconesblockchain defaultexplorerserver defaultrestapiserver
//
//
// definition in wire.go
//
// func InjectMySQL(config viperjacket.Config) (database.Database, error) { ... }
// func InjectOssiconesBlockchain(config viperjacket.Config, database.Database) (blockchain.Blockchain, error) { ... }
// func InjectDefaultExplorerServer(config viperjacket.Config, blockchain blockchain.Blockchain) (explorerserver.ExplorerServer, error) { ...}
// func InjectDefaultRESTAPIServer(config viperjacket.Config, blockchain blockchain.Blockchain) (restapiserver.RESTAPIServer, error) { ...}
//
//
// injectors can be like this.
//
// var injectors = map[string]interface{}{
// "mysql": InjectMySQL,
// "ossiconesblockchain": InjectOssiconesBlockchain,
// }
// var injectors = map[string]interface{}{
// "mysql": InjectMySQL,
// "ossiconesblockchain": InjectOssiconesBlockchain,
// }
//
// eagerInjectors can be like this.
//
// var eagerInjectors = map[string]interface{}{
// "defaultexplorerserver": InjectDefaultExplorerServer,
// "defaultrestapiserver": InjectDefaultRESTAPIServer,
// }
//
// var eagerInjectors = map[string]interface{}{
// "defaultexplorerserver": InjectDefaultExplorerServer,
// "defaultrestapiserver": InjectDefaultRESTAPIServer,
// }
//
// injectors will be injected eagerly.
func (wj *WireJacket) SetEagerInjectors(injectors map[string]interface{}) *WireJacket {
Expand Down

0 comments on commit cc3ae76

Please sign in to comment.