func ExtractConfiguration(filename string) (ServiceConfig, error) {
	var config ServiceConfig
	err := envconfig.Process("orgpa", &config)
	if err != nil {
		return ServiceConfig{}, err
	}

	if strings.HasSuffix(config.StaticFilePath, "/") == false {
		config.StaticFilePath += "/"
	}
	if strings.HasSuffix(config.ViewFilePath, "/") == false {
		config.ViewFilePath += "/"
	}
	return config, nil
}
// ExtractConfiguration will extract the configuration from
// the environement and return a ServiceConfig struct containing
// the whole service configuration.
ExtractConfiguration will extract the configuration from
the environement and return a ServiceConfig struct containing
the whole service configuration.
// ExtractConfiguration will extract the configuration from // the environement and return a ServiceConfig struct containing // the whole service configuration .
func ExtractConfiguration(filename string) (ServiceConfig, error) {
	var config ServiceConfig
	err := envconfig.Process("orgpa", &config)
	if err != nil {
		return ServiceConfig{}, err
	}
	if strings.HasSuffix(config.StaticFilePath, "/") == false {
		config.StaticFilePath += "/"
	}
	if strings.HasSuffix(config.ViewFilePath, "/") == false {
		config.ViewFilePath += "/"
	}
	return config, nil
}
func ExtractConfiguration ( filename string ) ( ServiceConfig , error ) { var config ServiceConfig err := envconfig . Process ( " " , & config ) if err != nil { return ServiceConfig { } , err } if strings . HasSuffix ( config . StaticFilePath , " " ) == false { config . StaticFilePath += " " } if strings . HasSuffix ( config . ViewFilePath , " " ) == false { config . ViewFilePath += " " } return config , nil }
ExtractConfiguration will extract the configuration from
the environement and return a ServiceConfig struct containing
the whole service configuration.
ExtractConfiguration will extract the configuration from the environement and return a ServiceConfig struct containing the whole service configuration .