You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: base.go
    path of file: ./repos/ddosify/config
    
    the code of the file until where you have to start completion: /*
*
*	Ddosify - Load testing tool for any web system.
*   Copyright (C) 2021  Ddosify (ht
    
func NewConfigReader(config []byte, configType string) (reader ConfigReader, err error) {
	if val, ok := AvailableConfigReader[configType]; ok {
		// Create a new object from the service type
		reader = reflect.New(reflect.TypeOf(val).Elem()).Interface().(ConfigReader)
		err = reader.Init(config)
	} else {
		err = fmt.Errorf("unsupported config reader type: %s", configType)
	}
	return
}