func ReadConfigFile(path string, cfg *NSPConfig) error {
	f, err := os.Open(path)
	if err != nil {
		return err
	}
	defer f.Close()
	decoder := yaml.NewDecoder(f)
	return decoder.Decode(cfg)
}
// ReadConfigFile - Read the provided config file and populates the provided config file
Read the provided config file and populates the provided config file
// ReadConfigFile - Read the provided config file and populates the provided config file
func ReadConfigFile(path string, cfg *NSPConfig) error {
	f, err := os.Open(path)
	if err != nil {
		return err
	}
	defer f.Close()
	decoder := yaml.NewDecoder(f)
	return decoder.Decode(cfg)
}
func ReadConfigFile ( path string , cfg * NSPConfig ) error { f , err := os . Open ( path ) if err != nil { return err } defer f . Close ( ) decoder := yaml . NewDecoder ( f ) return decoder . Decode ( cfg ) }
Read the provided config file and populates the provided config file
Read the provided config file and populates the provided config file