2020-04-27 22:43:42 +02:00
|
|
|
package config
|
|
|
|
|
|
|
|
import "gitlab.com/wpetit/goweb/service"
|
|
|
|
|
2020-06-15 21:05:28 +02:00
|
|
|
// ServiceProvider returns the current config service
|
2020-04-27 22:43:42 +02:00
|
|
|
func ServiceProvider(config *Config) service.Provider {
|
|
|
|
return func(ctn *service.Container) (interface{}, error) {
|
|
|
|
return config, nil
|
|
|
|
}
|
|
|
|
}
|