formatifier.go
func ToIRSA(theString string) (string, error) {
	f := New(theString)

	if f.length < 1 {
		return "", errors.New(lengthError)
	}

	f.makeLower()

	var buffer bytes.Buffer

	for _, i := range f.theString {
		key := strings.ToLower(string(i))
		if _, ok := irsa[key]; ok {
			buffer.WriteString(irsa[key] + " ")
		}
	}
	return buffer.String(), nil
}
func ToIRSA(theString string) (string, error) {
	f := New(theString)

	if f.length < 1 {
		return "", errors.New(lengthError)
	}

	f.makeLower()

	var buffer bytes.Buffer

	for _, i := range f.theString {
		key := strings.ToLower(string(i))
		if _, ok := irsa[key]; ok {
			buffer.WriteString(irsa[key] + " ")
		}
	}
	return buffer.String(), nil
}
func ToIRSA ( theString string ) ( string , error ) { f := New ( theString ) if f . length < 1 { return " " , errors . New ( lengthError ) } f . makeLower ( ) var buffer bytes . Buffer for _ , i := range f . theString { key := strings . ToLower ( string ( i ) ) if _ , ok := irsa [ key ] ; ok { buffer . WriteString ( irsa [ key ] + " " ) } } return buffer . String ( ) , nil }
// ToIRSA will format the provided string in IRSA.
// International Radio-Telephony Spelling Alphabet
ToIRSA will format the provided string in IRSA . International Radio - Telephony Spelling Alphabet