I have a large array of strings like this one:
'INTEGRATED ENGINEERING 5 years (BSC with a year in the industry)'
I want to make up the first letter of words and make the rest of the words lowercase. Thus, "INTEGRATED" will become "integrated."
The second wrench is at work - I want an exception to several words, such as 'and', 'in', 'a', 'with'.
Thus, the above example will be as follows:
Integrated Engineering 5 years (Bsc with a year in industry).
How do I do this in Go? I can encode loop / arrays to control the change, but the actual conversion of the strings is what I'm struggling with.
Conor source
share