func StringToTranslator(ts string) (Translator, error) {
	switch strings.ToLower(ts) {
	case "json":
		return &JsonTranslator{}, nil
	default:
		return nil, fmt.Errorf("unknown format: %s", ts)
	}
}
// StringToTranslator takes in a string which is supposed to identify which
// translator is desired and returns an instance of a translator of that type
StringToTranslator takes in a string which is supposed to identify which
translator is desired and returns an instance of a translator of that type
// StringToTranslator takes in a string which is supposed to identify which // translator is desired and returns an instance of a translator of that type
func StringToTranslator(ts string) (Translator, error) {
	switch strings.ToLower(ts) {
	case "json":
		return &JsonTranslator{}, nil
	default:
		return nil, fmt.Errorf("unknown format: %s", ts)
	}
}
func StringToTranslator ( ts string ) ( Translator , error ) { switch strings . ToLower ( ts ) { case " " : return & JsonTranslator { } , nil default : return nil , fmt . Errorf ( " " , ts ) } }
StringToTranslator takes in a string which is supposed to identify which
translator is desired and returns an instance of a translator of that type
StringToTranslator takes in a string which is supposed to identify which translator is desired and returns an instance of a translator of that type